Ver Mensaje Individual
  #4  
Antiguo 01-08-2008
[coso] coso is offline
Miembro Premium
 
Registrado: may 2008
Ubicación: Girona
Posts: 1.678
Reputación: 0
coso Va por buen camino
Bueno, si miras en la ayuda del C++ veras que flood fill lo que hace es llenar un area hasta que encuentra el color TColor, o bien toda el area que es de ese color, a partir del punto X,Y. El parametro que no sabes que introducir es el que decide como rellenar.

te dejo la ayuda de delphi
Cita:

Fills an area of the canvas using the current brush.

type TFillStyle = (fsSurface, fsBorder);
procedure FloodFill(X, Y: Integer; Color: TColor; FillStyle: TFillStyle);

Description

Use FloodFill to fill a possibly non-rectangular region of the image with the value of Brush. The boundaries of the region to be filled are determined by moving outward from the point (X,Y) until a color boundary involving the Color parameter is encountered.

FillStyle determines what type of color changes define the boundaries, as indicated in the following table.

Value Meaning

fsSurface Fill all area that has the color indicated by the Color parameter. Stop when another color is encountered.
fsBorder Fill all area that does not have the color indicated by the Color parameter. Stop when Color is encountered.

Use the Pixels property to get the exact value of the color at the point (X,Y) when using a FillStyle of fsSurface. Similarly, when FillStyle is fsBorder, use Pixels to get the exact value of the boundary color if a point on the boundary is known.
ten en cuenta que es mucho mas rapido buscar en la ayuda del IDE que preguntar en un foro saludos
Responder Con Cita