Method
VipsImagedraw_flood
Declaration [src]
int
vips_draw_flood (
VipsImage* image,
double* ink,
int n,
int x,
int y,
...
)
Description [src]
Optional arguments:
test
: test this imageequal
: fill while equal to edgeleft
: output left edge of bounding box of modified areatop
: output top edge of bounding box of modified areawidth
: output width of bounding box of modified areaheight
: output height of bounding box of modified area
Flood-fill image
with ink
, starting at position x
, y
. The filled area is
bounded by pixels that are equal to the ink colour, in other words, it
searches for pixels enclosed by an edge of ink
.
If equal
is set, it instead searches for pixels which are equal to the
start point and fills them with ink
.
Normally it will test and set pixels in image
. If test
is set, it will
test pixels in test
and set pixels in image
. This lets you search an
image (test
) for continuous areas of pixels without modifying it.
left
, top
, width
, height
output the bounding box of the modified pixels.
ink
is an array of double containing values to draw.
See also: vips_draw_flood1().
This method is not directly available to language bindings. |