<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_RAW2VIPS(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_raw2vips, im_vips2raw - wrap a raw binary file inside an IMAGE descriptor <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> <b>#include <vips/vips.h></b> <p> int <br> im_raw2vips( const char *filename, IMAGE *out, <br> <tt> </tt> <tt> </tt> int width, int height, int bpp, int offset )<br> <p> int <br> im_vips2raw( IMAGE *in, int fd ) <p> <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_raw2vips.3.html'><b>im_raw2vips(3)</b></a> mmaps the file named, setting image <b>out</b> so that access to that image will read from the file. The parameters specify the image width, height, bytes per pixel and offset in bytes from the start of the file. <p> Use functions like <a href='im_copy_morph.3.html'><b>im_copy_morph(3)</b></a> to set the pixel type, byte ordering and so on. <p> <a href='im_vips2raw.3.html'><b>im_vips2raw(3)</b></a> writes the pixels in the IMAGE to the file descriptor. It’s handy for writing writers for other formats. <p> <h2><a name='sect3' href='#toc3'>Return Value</a></h2> The functions return NULL on error. <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_copy_morph.3.html'>im_copy_morph(3)</a> , <a href='im_copy_swap.3.html'>im_copy_swap(3)</a> . <h2><a name='sect5' href='#toc5'>Copyright</a></h2> Imperial College, 2005 <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> </ul> </body> </html>