diff --git a/cplusplus/include/vips/vips-operators.h b/cplusplus/include/vips/vips-operators.h index 481600da..cd06cd71 100644 --- a/cplusplus/include/vips/vips-operators.h +++ b/cplusplus/include/vips/vips-operators.h @@ -1,5 +1,5 @@ // headers for vips operations -// Thu 18 Jun 2020 01:19:31 PM CEST +// Sun 5 Jul 22:36:46 BST 2020 // this file is generated automatically, do not edit! /** @@ -1359,7 +1359,7 @@ static VImage matload( const char *filename, VOption *options = 0 ); /** * Invert an matrix. * @param options Optional options. - * @return Output image. + * @return Output matrix. */ VImage matrixinvert( VOption *options = 0 ) const; @@ -1620,6 +1620,14 @@ void pngsave_target( VTarget target, VOption *options = 0 ) const; */ static VImage ppmload( const char *filename, VOption *options = 0 ); +/** + * Load ppm base class. + * @param source Source to load from. + * @param options Optional options. + * @return Output image. + */ +static VImage ppmload_source( VSource source, VOption *options = 0 ); + /** * Save image to ppm file. * @param filename Filename to save to. @@ -1627,6 +1635,13 @@ static VImage ppmload( const char *filename, VOption *options = 0 ); */ void ppmsave( const char *filename, VOption *options = 0 ) const; +/** + * Save to ppm. + * @param target Target to save to. + * @param options Optional options. + */ +void ppmsave_target( VTarget target, VOption *options = 0 ) const; + /** * Premultiply image alpha. * @param options Optional options. diff --git a/cplusplus/vips-operators.cpp b/cplusplus/vips-operators.cpp index aca3a206..f8456a5f 100644 --- a/cplusplus/vips-operators.cpp +++ b/cplusplus/vips-operators.cpp @@ -1,5 +1,5 @@ // bodies for vips operations -// Thu 18 Jun 2020 01:19:31 PM CEST +// Sun 5 Jul 22:36:37 BST 2020 // this file is generated automatically, do not edit! VImage VImage::CMC2LCh( VOption *options ) const @@ -2467,6 +2467,18 @@ VImage VImage::ppmload( const char *filename, VOption *options ) return( out ); } +VImage VImage::ppmload_source( VSource source, VOption *options ) +{ + VImage out; + + call( "ppmload_source", + (options ? options : VImage::option())-> + set( "out", &out )-> + set( "source", source ) ); + + return( out ); +} + void VImage::ppmsave( const char *filename, VOption *options ) const { call( "ppmsave", @@ -2475,6 +2487,14 @@ void VImage::ppmsave( const char *filename, VOption *options ) const set( "filename", filename ) ); } +void VImage::ppmsave_target( VTarget target, VOption *options ) const +{ + call( "ppmsave_target", + (options ? options : VImage::option())-> + set( "in", *this )-> + set( "target", target ) ); +} + VImage VImage::premultiply( VOption *options ) const { VImage out;