From 6386de9b844ee2d6fe49f51f79ffd57f5b3a61d6 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 5 Jun 2008 10:43:32 +0000 Subject: [PATCH] tiny doc fixes --- doc/src/vimage.tex | 2 +- man/im_affine.3 | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/src/vimage.tex b/doc/src/vimage.tex index 2103ec87..d93b95bd 100644 --- a/doc/src/vimage.tex +++ b/doc/src/vimage.tex @@ -144,7 +144,7 @@ VImage fred = VImage::convert2disc( "im_jpeg2vips", "file.jpg", "temp.v" ); \end{verbatim} -/noindent +\noindent Will decompress to the file \verb+temp.v+, then open that and return a reference to it. You will need to delete the file once you are finished with it. diff --git a/man/im_affine.3 b/man/im_affine.3 index a7663852..d105f1a2 100644 --- a/man/im_affine.3 +++ b/man/im_affine.3 @@ -31,10 +31,18 @@ the position of the transformed top-left-hand corner of the input image. Function im_affine resamples the transformed image using bilinear interpolation. +You can use +.B im_affine(3) +to resize an image with something like: + + scale xfac yfac im + = im_affine im xfac 0 0 yfac 0 0 0 0 + (im.width * xfac) (im.height * yfac); + .SH RETURN VALUE The functions return 0 on success and -1 on error. .SH BUGS As with most resamplers, im_affine(3) performs poorly at the edges of images. -.SH SEE\ ALSO +.SH SEE ALSO im_similarity(3)