473,497 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2240
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
466
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
4033
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
5296
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
6260
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
2927
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
4730
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
5958
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
5609
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
3191
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
3615
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
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
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
7160
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
7196
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...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.