Re: Scribble GraphicsPath Floodfill

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff Bennett (jeff_at_bennet-tec.com)
Date: 10/14/04


Date: 14 Oct 2004 15:20:43 -0700

JZ,

If you are open to use of a commercial component I'd like to
suggest you consider our MetaDraw .NET Winforms component.

With MetaDraw you just set one property ( EditMode )
to allow user to draw freehand lines, or set floodfill.
Adding / merging in images, is also easy - just set
PictureClip property, or set PictureImage and then
set EditMode to allow user to Draw the image where he
wants.
MetaDraw also has full Multi-Step UnDo/ ReDo support.

Check it out at www.MetaDraw.com
Drop me a note and let me know what you think.
I hope this is helpful to you.

      * * * * Please include a copy of this message with your reply

        Jeff Bennett
        Jeff@Bennet-Tec.Com

        * Bennet-Tec Information Systems, Inc
        * 50 Jericho Tpk, Jericho, NY 11753
        * Phone 516 997 5596, Fax - 5597
        * RELIABLE Components Make You Look Sharp!
        * TList/Pro * ALLText HT/Pro * MetaDraw *
        * Custom Software Development Services Too.
        * WWW.Bennet-Tec.Com
        
=================== ===================

"JZ" <jj@anon.anon.com> wrote in message news:<416a5bdc$0$3934$cc9e4d1f@news-text.dial.pipex.com>...
> Hi,
>
> I wonder is anyone can suggest an approach and possibly some sample code.
>
> I've got a small scribble program, where the user can draw freehand lines
> using graphicspath, also add pieces (images).
>
> I've seen fillpath but this won't work if the user tried to floodfill a
> piece.
>
> I think I've seen some floodfill code which works on an image of the canvas.
> However, I want to be able to undo / redo the floofills that are
> implemented.
>
> The only was I can think of to achieve this is to try and compare the canvas
> image before and after floodfill and try and chop the floodfilled segment in
> a small image, then add the image like I would a piece.
>
> However, this seems rather complicated.
>
> Any ideas?