Re: Need some graphical advice

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



you might consider using the web browser control
and generating html code to display the map,
this takes care of clicking on items, etc ...

I did this when I wanted a colour coded text display.
it also meant I could click on items and it would go to bookmarks.

other than that its quite a long job to make such a custom gui
with custom control. however there might be a commercial library or
some examples or open projects.

Colin =^.^=


"MrNobody" <MrNobody@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:66193807-1989-452E-B3AD-9435DD5E4B33@xxxxxxxxxxxxxxxx
I need to make a user interface which features an interactive map, where
all
the states are drawn and the user may click on individual states to get
details on it, and they may color in states different colors and make
regions
or groups of similar colored states.

I figured out pretty easily how to get a clickable map where I know what
state the user clicks on, but the problem I am having is how do I color
different states in? And how do I draw borders between the states and
between
the regions? I really have no 2D drawing experience so I was hoping
someone
here would be able to advise me.

Right now I have a bitmap behind the scenes which maps x,y coordinates to
an
individual state then an image drawn on the user interface. The map drawn
to
the user interface right now is basically the United States from a
satellite
photograph- with the terrain and everything colored in. I used that map to
build my bitmap to map what state a user clicks on from an x,y coord.

But no borders are drawn. I need to somehow trace the boundaries between
different colors on the bitmap file and use that to draw lines. Then
probably
using a very similar if not same technique for tracing those borders I can
create the shapes which would be colored in as an overlay when the user
colors in some states and groups them into regions.

What kind of APIs and what techniques would I need to use in order to
trace
these bitmap areas so I can build those borders and create shapes I can
color
in?




.



Relevant Pages

  • Re: Need some graphical advice
    ... I figured out pretty easily how to get a clickable map where I know what ... individual state then an image drawn on the user interface. ... build my bitmap to map what state a user clicks on from an x,y coord. ... But no borders are drawn. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Need some graphical advice
    ... I figured out pretty easily how to get a clickable map where I know what ... individual state then an image drawn on the user interface. ... build my bitmap to map what state a user clicks on from an x,y coord. ... But no borders are drawn. ...
    (microsoft.public.dotnet.languages.csharp)
  • Help Drawing into a Dialog
    ... What I have done now is simple draw a BITMAP into a dialogue ... the map only calling the CDialog::OnInitDialogroutine. ... //for clear map no markrs ... int xposition = 194; ...
    (microsoft.public.vc.mfc)
  • Best way to alpha blend over a bitmap.
    ... I'm writing an app that creates a bitmap of a map. ... Since this is so small I resize it (using NearestNeighbor to retain the ... square to float, constrained by the resolution of the map (I want it to snap ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GPath performance issue
    ... I'm drawing a map from coordinates temporarily stored in double arrays. ... the Bitmap to gain performance. ... Is the graphics memory full? ...
    (microsoft.public.dotnet.framework.drawing)