diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index abd0b78a..0c51de82 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -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 {