Re: [fpc-pascal] fpcanvas and FloodFill()

2007-07-02 Thread Graeme Geldenhuys
On 02/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> 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! ;-)

Re: [fpc-pascal] fpcanvas and FloodFill()

2007-07-02 Thread Michael Van Canneyt
On Mon, 2 Jul 2007, Graeme Geldenhuys wrote: > On 02/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > The FPImagecanvas has it implemented, you should be able to get some > > inspiration > > from that. Look also in the pixtools unit. > > Thanks Michael. > The hard bit (without look

Re: [fpc-pascal] fpcanvas and FloodFill()

2007-07-02 Thread Graeme Geldenhuys
On 02/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: The FPImagecanvas has it implemented, you should be able to get some inspiration from that. Look also in the pixtools unit. Thanks Michael. The hard bit (without looking at any code) will be the rules when to paint. Am I understandin

Re: [fpc-pascal] fpcanvas and FloodFill()

2007-07-02 Thread Michael Van Canneyt
On Mon, 2 Jul 2007, Graeme Geldenhuys wrote: > On 02/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> 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

Re: [fpc-pascal] fpcanvas and FloodFill()

2007-07-02 Thread Michael Van Canneyt
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 > Can