update docs

some old stuff in examples
This commit is contained in:
John Cupitt 2017-11-09 14:53:20 +00:00
parent c01afbc559
commit 2bb7844f4c
2 changed files with 4 additions and 5 deletions

View File

@ -60,7 +60,7 @@ main( int argc, char **argv )
VImage in = VImage::new_from_file( argv[1],
VImage::option()->
set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) );
set( "access", VIPS_ACCESS_SEQUENTIAL ) );
double avg = in.avg();
@ -69,7 +69,7 @@ main( int argc, char **argv )
VImage in = VImage::new_from_file( argv[1],
VImage::option()->
set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) );
set( "access", VIPS_ACCESS_SEQUENTIAL ) );
VImage out = in.embed( 10, 10, 1000, 1000,
VImage::option()->

View File

@ -60,7 +60,7 @@
<para>
This makes error handling very simple but the obvious downside is that
because error returns and error messages are separate when you
because error returns and error messages are separate, when you
detect an error return you can't be
sure that what's in the error buffer is the message that matches your
error.
@ -161,8 +161,7 @@ test (const char *filename)
snprintf (output_file, 256, "x/tmp-%p.jpg", g_thread_self ());
if (!(im = vips_image_new_from_file (filename,
"access",
VIPS_ACCESS_SEQUENTIAL_UNBUFFERED,
"access", VIPS_ACCESS_SEQUENTIAL,
NULL)))
return (-1);