Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7faa4cd12598db7d59564e3dc9a0913c > files > 488

vips-7.18.2-1mdv2010.0.i586.rpm

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->

<html>
<head>
<title>SHRINK(3) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>

<h2><a name='sect0' href='#toc0'>Name</a></h2>
im_shrink -  shrink an image 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
#include &lt;vips/vips.h&gt; 
<p> int im_shrink(in,
out, xfactor, yfactor) <br>
IMAGE *in, *out; <br>
double xfactor, yfactor; 
<p> int im_resize_linear(in, out, X, Y) <br>
IMAGE *in, *out; <br>
int X, Y; 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>

<p> <a href='im_shrink.3.html'><b>im_shrink(3)</b></a>
 shrink the input image file by  <b>xfactor
</b> along the horizontal and <b>yfactor </b> along the vertical direction.  The function
does not perform subpixel interpolation and therefore the resultant image
can present aliasing especially for small x and y factors. Any size image,
any non-complex type, any number of bands. 
<p> <a href='im_resize_linear.3.html'><b>im_resize_linear(3)</b></a>
 resizes the
image to be <b>X</b> by <b>Y</b> pixels. It is slow, only does bilinear interpolation
(and so will be inaccurate for factors greater than two), and uses WIO,
so it has a 2GB image size limit and will use large amounts of memory. Use
 <a href='im_shrink.3.html'><b>im_shrink(3)</b></a>
 in preference if possible. 
<p> 
<h2><a name='sect3' href='#toc3'>Return Value</a></h2>
The functions returns
0 on success and -1 on error. 
<h2><a name='sect4' href='#toc4'>See Also</a></h2>
<a href='im_affine.3.html'>im_affine(3)</a>
  <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Return Value</a></li>
<li><a name='toc4' href='#sect4'>See Also</a></li>
</ul>
</body>
</html>