Add set and get for an array of ints
This commit is contained in:
parent
bd9c97feed
commit
1b54684650
|
@ -351,6 +351,12 @@ public:
|
||||||
vips_image_set_int( this->get_image(), field, value );
|
vips_image_set_int( this->get_image(), field, value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
set( const char *field, int *value, int n )
|
||||||
|
{
|
||||||
|
vips_image_set_array_int( this->get_image(), field, value, n );
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
set( const char *field, double value )
|
set( const char *field, double value )
|
||||||
{
|
{
|
||||||
|
@ -388,6 +394,13 @@ public:
|
||||||
return( value );
|
return( value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
get_array_int( const char *field, int **out, int *n ) const
|
||||||
|
{
|
||||||
|
if( vips_image_get_array_int( this->get_image(), field, out, n ) )
|
||||||
|
throw( VError() );
|
||||||
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
get_double( const char *field ) const
|
get_double( const char *field ) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue