Sophie

Sophie

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

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_OFFSETS45(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_offsets45, im_offsets90, im_rotate_imask45, im_rotate_dmask45, im_rotate_imask90,
im_rotate_dmask90 - rotate square masks 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>

<p> <b>int *im_offsets45( size
)</b> <br>
<b>int size;</b> 
<p> <b>int *im_offsets90( size )</b> <br>
<b>int size;</b> 
<p> <b>INTMASK *im_rotate_imask45( m, name )</b> <br>
<b>INTMASK *m;</b> <br>
<b>char *name;</b> 
<p> <b>DOUBLEMASK *im_rotate_dmask45( m, name )</b> <br>
<b>DOUBLEMASK *m;</b> <br>
<b>char *name;</b> 
<p> <b>INTMASK *im_rotate_imask90( m, name )</b> <br>
<b>INTMASK *m;</b> <br>
<b>char *name;</b> 
<p> <b>DOUBLEMASK *im_rotate_dmask90( m, name )</b> <br>
<b>DOUBLEMASK *m;</b> <br>
<b>char *name;</b> 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
These functions can be used to produce the integer
offsets needed to rotate masks by 45 or 90 degrees clockwise. 
<p> <b>im_offsets45()</b>
accepts only even size and returns a pointer to an int buffer of size*size.
The program mallocs the buffer and puts into it the integer offsets needed
to rotate a mask of even size size by 45 degrees.  For instance if size
is 3 the program returns the buffer 3 0 1  6 4 2  7 8 5 which is the offsets
needed to rotate a mask with offsets 0 1 2  3 4 5  6 7 8.  The function
return a pointer to valid data on success or NULL on error.  Since the program
mallocs a buffer, the user should free the returned pointer accordingly.

<p> <b>im_offsets90()</b> accepts any size and returns a pointer to an int buffer
of size*size.  The program mallocs the buffer and puts into it the integer
offsets needed to rotate a mask of size size by 90 degrees.  For instance
if size is 3 the program returns the buffer 6 3 0  7 4 1  8 5 2 which is
the offsets needed to rotate a mask with offsets 0 1 2  3 4 5  6 7 8.  The
function return a pointers to valid data on success or NULL on error.  Since
the program mallocs a buffer, the user should free the returned pointer
accordingly. 
<p> <b>im_rotate_imask45()</b> rotates the INTMASK m by 45 degrees and
returns the rotated mask.  The filename member of the returned structure
is set to name.  The program allocates memory for the new mask and therefore
the user must free the returned mask by a call to <a href='im_free_imask.3.html'>im_free_imask(3)</a>
.  The
returned mask is rotated by 45 degrees clockwise. The function return a
valid INTMASK pointer on success or NULL on error. 
<p> <b>im_rotate_dmask45()</b>
rotates the DOUBLEMASK m by 45 degrees and returns the rotated mask.  The
filename member of the returned structure is set to name.  The program allocates
memory for the new mask and therefore the user must free the returned mask
by a call to <a href='im_free_dmask.3.html'>im_free_dmask(3)</a>
.  The returned mask is rotated by 45 degrees
clockwise. The function return a valid DOUBLEMASK pointer on success or
NULL on error. 
<p> <b>im_rotate_imask90()</b> rotates the INTMASK m by 90 degrees
and returns the rotated mask.  The filename member of the returned structure
is set to name.  The program allocates memory for the new mask and therefore
the user must free the returned mask by a call to <a href='im_free_imask.3.html'>im_free_imask(3)</a>
.  The
returned mask is rotated by 90 degrees clockwise. The function return a
valid INTMASK pointer on success or NULL on error. 
<p> <b>im_rotate_dmask90()</b>
rotates the DOUBLEMASK m by 90 degrees and returns the rotated mask.  The
filename member of the returned structure is set to name.  The program allocates
memory for the new mask and therefore the user must free the returned mask
by a call to <a href='im_free_dmask.3.html'>im_free_dmask(3)</a>
.  The returned mask is rotated by 90 degrees
clockwise. The function return a valid DOUBLEMASK pointer on success or
NULL on error. 
<p> 
<h2><a name='sect3' href='#toc3'>Return Value</a></h2>

<h2><a name='sect4' href='#toc4'>See Also</a></h2>
<a href='im_read_imask.3.html'>im_read_imask(3)</a>
, <a href='im_read_dmask.3.html'>im_read_dmask(3)</a>
,
<a href='im_free_imask.3.html'>im_free_imask(3)</a>
, <a href='im_free_dmask.3.html'>im_free_dmask(3)</a>
, <a href='im_gradient.3.html'>im_gradient(3)</a>
, <a href='im_compass.3.html'>im_compass(3)</a>
, <a href='im_conv.3.html'>im_conv(3)</a>
.

<h2><a name='sect5' href='#toc5'>Copyright</a></h2>
<br>
N. Dessipris 
<h2><a name='sect6' href='#toc6'>Author</a></h2>
N. Dessipris -28/05/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'>Return Value</a></li>
<li><a name='toc4' href='#sect4'>See Also</a></li>
<li><a name='toc5' href='#sect5'>Copyright</a></li>
<li><a name='toc6' href='#sect6'>Author</a></li>
</ul>
</body>
</html>