<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_WRITELINE(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_writeline - writes a line of data in the image descriptor <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> <b>#include <vips/vips.h></b> <p> <b>int im_writeline(ypos, image, buffer)</b> <br> <b>int ypos;</b> <br> <b>IMAGE *image;</b> <br> <b>char *buffer;</b> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_writeline.3.html'><b>im_writeline(3)</b></a> writes the ypos line of an image held in buffer to either the output buffer image (previously set by <a href='im_setbuf.3.html'>im_setbuf(3)</a> ) or to an output file (previously set by <a href='im_openput.3.html'>im_openput(3)</a> ). The function provides uniform treatment of output irrespectively whether it is a file or a buffer image. <p> You should be careful that the buffer does indeed contain enough data for a complete line of pels --- see <a href='lsize.3.html'>lsize(3)</a> . <p> Any evaluation callbacks which have been added to image are triggered --- see <a href='im_generate.3.html'>im_generate(3)</a> and <a href='im_add_eval_callback.3.html'>im_add_eval_callback(3)</a> . <h2><a name='sect3' href='#toc3'>Bugs</a></h2> This function changed in VIPS6: programs written previously must be modified by removing the last argument of the old <a href='im_writeline.3.html'>im_writeline(3)</a> . <h2><a name='sect4' href='#toc4'>Return Value</a></h2> The function returns 0 on success and -1 on error. <h2><a name='sect5' href='#toc5'>See Also</a></h2> <a href='im_setbuf.3.html'>im_setbuf(3)</a> , <a href='im_openout.3.html'>im_openout(3)</a> , <a href='im_add_eval_callback.3.html'>im_add_eval_callback(3)</a> . <h2><a name='sect6' href='#toc6'>Copyright</a></h2> N. Dessipris <h2><a name='sect7' href='#toc7'>Author</a></h2> N. Dessipris 23/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'>Bugs</a></li> <li><a name='toc4' href='#sect4'>Return Value</a></li> <li><a name='toc5' href='#sect5'>See Also</a></li> <li><a name='toc6' href='#sect6'>Copyright</a></li> <li><a name='toc7' href='#sect7'>Author</a></li> </ul> </body> </html>