[fpc-pascal] fpcanvas and FloodFill()

Michael Van Canneyt michael at freepascal.org
Mon Jul 2 13:47:32 CEST 2007



On Mon, 2 Jul 2007, Graeme Geldenhuys wrote:

> On 02/07/07, Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> > 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.
> 
> Excellent idea.  Now I only need to figure out how to implement that!  ;-)

The FPImagecanvas has it implemented, you should be able to get some inspiration 
from that. Look also in the pixtools unit.

Michael.



More information about the fpc-pascal mailing list