GDI+, FloodFill

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Jacob

    GDI+, FloodFill

    Hello,

    I need to dynamically create room-plans which are supposed
    to highlight given rooms. For this, I've got room-plan
    templates which ahow the outline of the rooms of a
    building. Now I want to say something like "Fill the
    interior of this Room, given by these coordinates, with
    that color".

    As I understand it, the GDI+ in .NET does not offer a
    FloodFill function. So how can I make this possible? Since
    I am dealing with a web-application, whatever I do, it
    must be fast.

    Any suggestions?
  • Stu Smith

    #2
    Re: GDI+, FloodFill

    GDI+ supports paths (GraphicsPath I think but I could be wrong) which can be
    filled. You could define a path which is the shape of the room, and then
    call Graphics.FillPa th to do the interior drawing, and Graphics.DrawPa th for
    the walls.

    "Christian Jacob" <cjacob@agens.c om.NOSPAM> wrote in message
    news:0e6201c3a8 fc$ea9a46b0$a10 1280a@phx.gbl.. .[color=blue]
    > Hello,
    >
    > I need to dynamically create room-plans which are supposed
    > to highlight given rooms. For this, I've got room-plan
    > templates which ahow the outline of the rooms of a
    > building. Now I want to say something like "Fill the
    > interior of this Room, given by these coordinates, with
    > that color".
    >
    > As I understand it, the GDI+ in .NET does not offer a
    > FloodFill function. So how can I make this possible? Since
    > I am dealing with a web-application, whatever I do, it
    > must be fast.
    >
    > Any suggestions?[/color]


    Comment

    Working...