Poster of Linux kernelThe best gift for a Linux geek
IM_FLOOD

IM_FLOOD

Section: C Library Functions (3) Updated: 30 October 1992
Local index Up
 

NAME

im_flood, im_flood_blob - flood a area  

SYNOPSIS

#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;

 

DESCRIPTION

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.  

SEE ALSO

im_insertplace(3), im_smudge(3).


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:48:18 GMT, April 16, 2011