update docs
some old stuff in examples
This commit is contained in:
parent
c01afbc559
commit
2bb7844f4c
@ -60,7 +60,7 @@ main( int argc, char **argv )
|
|||||||
|
|
||||||
VImage in = VImage::new_from_file( argv[1],
|
VImage in = VImage::new_from_file( argv[1],
|
||||||
VImage::option()->
|
VImage::option()->
|
||||||
set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) );
|
set( "access", VIPS_ACCESS_SEQUENTIAL ) );
|
||||||
|
|
||||||
double avg = in.avg();
|
double avg = in.avg();
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ main( int argc, char **argv )
|
|||||||
|
|
||||||
VImage in = VImage::new_from_file( argv[1],
|
VImage in = VImage::new_from_file( argv[1],
|
||||||
VImage::option()->
|
VImage::option()->
|
||||||
set( "access", VIPS_ACCESS_SEQUENTIAL_UNBUFFERED ) );
|
set( "access", VIPS_ACCESS_SEQUENTIAL ) );
|
||||||
|
|
||||||
VImage out = in.embed( 10, 10, 1000, 1000,
|
VImage out = in.embed( 10, 10, 1000, 1000,
|
||||||
VImage::option()->
|
VImage::option()->
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
This makes error handling very simple but the obvious downside is that
|
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
|
detect an error return you can't be
|
||||||
sure that what's in the error buffer is the message that matches your
|
sure that what's in the error buffer is the message that matches your
|
||||||
error.
|
error.
|
||||||
@ -161,8 +161,7 @@ test (const char *filename)
|
|||||||
snprintf (output_file, 256, "x/tmp-%p.jpg", g_thread_self ());
|
snprintf (output_file, 256, "x/tmp-%p.jpg", g_thread_self ());
|
||||||
|
|
||||||
if (!(im = vips_image_new_from_file (filename,
|
if (!(im = vips_image_new_from_file (filename,
|
||||||
"access",
|
"access", VIPS_ACCESS_SEQUENTIAL,
|
||||||
VIPS_ACCESS_SEQUENTIAL_UNBUFFERED,
|
|
||||||
NULL)))
|
NULL)))
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user