Add missing C++ functions
The functions has_alpha() and copy_memory() were missing from the C++ binding.
This commit is contained in:
parent
3de9f896ac
commit
cd340d0ace
@ -327,6 +327,12 @@ public:
|
|||||||
return( vips_image_get_yoffset( get_image() ) );
|
return( vips_image_get_yoffset( get_image() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
has_alpha() const
|
||||||
|
{
|
||||||
|
return( vips_image_hasalpha( get_image() ) );
|
||||||
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
filename() const
|
filename() const
|
||||||
{
|
{
|
||||||
@ -495,6 +501,17 @@ public:
|
|||||||
return( new_from_image( to_vectorv( 1, pixel ) ) );
|
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;
|
VImage write( VImage out ) const;
|
||||||
|
|
||||||
void write_to_file( const char *name, VOption *options = 0 ) const;
|
void write_to_file( const char *name, VOption *options = 0 ) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user