Re: creating multiple regions from an image based on colors

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



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



.



Relevant Pages

  • Re: Color spectrum algorithm
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Drawing Multiple Polygons
    ... Answer those GDI+ questions with the GDI+ FAQ ... >I have a program that displays a map in a picture box. ... > draw polygons on top of the map. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Drawing Graphics and undo this
    ... You've asked about half a dozen questions there really. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Convert RGB image to CMYK
    ... Ahh if I knew I'd definitely put it in the FAQ. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.languages.vb)
  • Re: SetPixel is too slow for my needs
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... Dim newArrByte() As Byte ...
    (microsoft.public.dotnet.framework.drawing)