1IM_FLOOD(3) Library Functions Manual IM_FLOOD(3)
2
3
4
6 im_flood, im_flood_blob - flood a area
7
9 #include <vips/vips.h> #include <vips/rect.h>
10
11 int im_flood( im, x, y, ink, dout )
12 IMAGE *im;
13 int x, y;
14 PEL *ink;
15 Rect *dout;
16
17 int im_flood_blob( im, x, y, ink, dout )
18 IMAGE *im;
19 int x, y;
20 PEL *ink;
21 Rect *dout;
22
23
25 im_flood() fills an enclosed area from a starting point, painting ink
26 into 4-way connected pels whose colour is not equal to ink.
27
28 im_flood_blob() floods with the ink colour, finding pels 4-way con‐
29 nected to the start pel which are the same colour as the start pel. It
30 is useful for changing the colour of a blob of pels which all have the
31 same value.
32
33
35 All functions return 0 on success and -1 on error.
36
38 im_insertplace(3), im_smudge(3).
39
40
41
42 30 October 1992 IM_FLOOD(3)