<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_FLOOD(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_flood, im_flood_blob - flood a area <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> <b>#include <vips/vips.h></b> <p> int im_flood( im, x, y, ink, dout ) <br> IMAGE *im; <br> int x, y; <br> PEL *ink; <br> Rect *dout; <p> int im_flood_blob( im, x, y, ink, dout ) <br> IMAGE *im; <br> int x, y; <br> PEL *ink; <br> Rect *dout; <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> <b>im_flood()</b> fills an enclosed area from a starting point, painting ink into 4-way connected pels whose colour is not equal to ink. <p> <b>im_flood_blob()</b> floods with the ink colour, finding pels 4-way connected to the start pel which are the same colour as the start pel. It is useful for changing the colour of a blob of pels which all have the same value. <p> <h2><a name='sect3' href='#toc3'>Return Value</a></h2> All functions return 0 on success and -1 on error. <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_insertplace.3.html'>im_insertplace(3)</a> , <a href='im_smudge.3.html'>im_smudge(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>