473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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?
Nov 22 '05 #1
1 2235
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.FillPath to do the interior drawing, and Graphics.DrawPath for
the walls.

"Christian Jacob" <cj****@agens.com.NOSPAM> wrote in message
news:0e****************************@phx.gbl...
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?

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christian Jacob | last post by:
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...
6
by: James dean | last post by:
I have heard that the video drivers in GDI+ are a big performance issue. But is this only an issue with something like Games Programming i think...is this wrong?. What about a drawing application...
1
by: James dean | last post by:
Could someone explain how this works. I think the graphics card is used to do blitting and drawing shapes like rectangles. How does it draw using the Graphics card on the PC and why is this feature...
6
by: James dean | last post by:
I want a good site that will show clearly how much more functionality GDI+ has. I cannot seem to find anything other than sites that list "some" of the new functionality that GDI+ offers. A...
7
by: | last post by:
We create VC++ programs that does some GDI drawing functionality. I discovered GDI+ and this seems to be a big step forward, and appears to be standard available in Windows XP and Windows Server...
0
by: Brian Keating | last post by:
hi there i've a test program that creates a treeview and destroys it over and over, i keep track of the gdi object count for the process and see if they are ok. However when i switch on...
7
by: Marcin Rzeznicki | last post by:
Hello, Do you think it is legitimate practice to mix GDI+ and GDI calls (via Get/ReleaseHDC()) in paint event of a control? I've heard there is possibility of performance loss while "locking"...
11
by: anon | last post by:
Borland's BGI graphics library (GRAPHICS.LIB, GRAPHICS.TPU) has a bug which can cause the floodfill routine to crash. It's most likely to occur in C applications when compiled using the small data...
10
by: kkrish | last post by:
Hello all, I am using MSDOS operating system and in a function of a program I tried to display a few hundred lines of a file in graphics mode using outtextxy(). The program gets 20 lines from...
5
by: Jonathan Boivin | last post by:
Hi, I've got some problems with loading bills using a bill usercontrol I built. If I load all current bills in my test environment (156) everything is fine once, but repeating the operation...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.