Re: creating multiple regions from an image based on colors
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Jul 2006 18:27:59 +0200
See the GDI+ FAQ for an article and code.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
<colecg@xxxxxxxxxxx> wrote in message
news:1154092667.640830.143540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a map, bitmap, of the world. each continent is in different
color. I would like to be able to select all pixels from one continent
which is colored in one same color into a separate region for a further
manipulation.
for example, europe is all blue, africa is all red, asia is all
green,etc
I would like to be able to create a region for europe, and then region
for africa, and then region for asia, ....
so I can then further manipulate those regions.
I have a windows form, and a picture box on the form and that bitmap as
an image of that picture box.
the deal is I am using following tool
http://msdn.microsoft.com/msdnmag/issues/06/07/CuttingEdge/
I have a greyscaled originial (Image of the picture box-visible to
user), and colored copy (MapImage of the picture box-not visible to
user) of the map of the world.
So I discover where user clicked by the color of the pixel that user
clicked on on the MapImage based on that click. At that moment when
user clicked I want to color that part of the the greyscaled map of the
world with some color that user selected (not the color of that area on
the MapImage--the background image) but with some user selected color
from the color pallette.
HELP
thanks
.
- Follow-Ups:
- References:
- Prev by Date: Serializing Bitmap
- Next by Date: Re: Bmp to Jpeg
- Previous by thread: creating multiple regions from an image based on colors
- Next by thread: Re: creating multiple regions from an image based on colors
- Index(es):
Relevant Pages
|