Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > c109337651527e96d7bb9adc83c5b18a > files > 341

libvips-devel-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>IM_INITDESC(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_initdesc - initialises an image descriptor to specific values 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
#include
&lt;vips/vips.h&gt; 
<p> void im_initdesc( IMAGE *image,      int xsize, int ysize,<br>
      int bands, int bandbits, int bandfmt,<br>
      int coding, int type,<br>
      float xres, float yres,<br>
      float xo, float yo )<br>
 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
<a href='im_initdesc.3.html'><b>im_initdesc(3)</b></a>
 initialises the image descriptor according to
the entered values. More specifically the Xsize, Ysize, Bands, BandFmt,
Coding, Type, Xres, Yres, Xoffset and Yoffset members of the descriptor
are initialised by the correspondingly entered arguments. The members  fd,
baseaddr, data and  filename are not handled by this function.  The order
of the args is the same as in vips/vips.h.   
<p> The <b>bandbits</b> parameter is deprecated
and ignored by this function: you can always pass zero. 
<p> Example: make a
512 by 512 one-band memory buffer. 
<p>    if( !(im = im_open( "temp", "t" ))
)<br>
         /* Error ...<br>
    im_initdesc( im,<br>
        512, 512,<br>
        1, 0, FMTUCHAR,<br>
        NOCODING, B_W,<br>
        1.0, 1.0,<br>
        0, 0 );<br>
    if( im_setupout( im ) )<br>
        /* Error ...<br>
 
<p> 
<h2><a name='sect3' href='#toc3'>Also</a></h2>
<a href='im_open.3.html'>im_open(3)</a>
, <a href='im_setupout.3.html'>im_setupout(3)</a>
. 
<h2><a name='sect4' href='#toc4'>Copyright</a></h2>
<br>
N. Dessipris 
<h2><a name='sect5' href='#toc5'>Author</a></h2>
N. Dessipris - 22/04/1991 <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'>Also</a></li>
<li><a name='toc4' href='#sect4'>Copyright</a></li>
<li><a name='toc5' href='#sect5'>Author</a></li>
</ul>
</body>
</html>