Add set and get for an array of ints

This commit is contained in:
Tomáš Szabo 2019-07-05 17:29:11 +02:00
parent bd9c97feed
commit 1b54684650
No known key found for this signature in database
GPG Key ID: 96F1E84929851783
1 changed files with 13 additions and 0 deletions

View File

@ -351,6 +351,12 @@ public:
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
set( const char *field, double value )
{
@ -388,6 +394,13 @@ public:
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
get_double( const char *field ) const
{