Add missing C++ functions

The functions has_alpha() and copy_memory() were missing from the C++ binding.
This commit is contained in:
Kleis Auke Wolthuizen 2019-01-10 14:56:04 +01:00
parent 3de9f896ac
commit cd340d0ace

View File

@ -327,6 +327,12 @@ public:
return( vips_image_get_yoffset( get_image() ) );
}
bool
has_alpha() const
{
return( vips_image_hasalpha( get_image() ) );
}
const char *
filename() const
{
@ -495,6 +501,17 @@ public:
return( new_from_image( to_vectorv( 1, pixel ) ) );
}
VImage
copy_memory() const
{
VipsImage *image;
if( !(image = vips_image_copy_memory( this->get_image() )) )
throw( VError() );
return( VImage( image ) );
}
VImage write( VImage out ) const;
void write_to_file( const char *name, VOption *options = 0 ) const;