im_flood3
Flood a area
Usage
#include <vips/vips.h>
int im_flood( im, x, y, ink, dout )
IMAGE *im;
int x, y;
PEL *ink;
Rect *dout;
int im_flood_blob( im, x, y, ink, dout )
IMAGE *im;
int x, y;
PEL *ink;
Rect *dout;
Overview
im_flood() fills an enclosed area from a starting point, painting ink into 4-way connected pels whose colour is not equal to ink.
im_flood_blob() 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.
Return value
All functions return 0 on success and -1 on error.
Releases
4 releases since Debian 3.1 (Sarge); the text changed 1 time.