On Mon, 2 Jul 2007, Graeme Geldenhuys wrote:

> Hi,
> 
> Still trying to implement fpcanvas as the bases classed for fpGUI.
> What is the function of...?
> 
> TFPCustomCanvas = class
> ....
>  procedure FloodFill (x,y:integer);
> ...
> 
> How is it supposed to differ from Canvas.Clear() and
> Canvas.Rectangle() which can both handle filling of a rectangle?

It fills the canvas (in all directions) till it encounters a different 
color which differs from the starting color. You can use this to fill
irregular shapes.


Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to