Re: Need some graphical advice

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ignacio Machin ( .NET/ C# MVP )

    Re: Need some graphical advice

    On May 1, 10:01 am, MrNobody <MrNob...@discu ssions.microsof t.com>
    wrote:
    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.
    Hi,

    Doing that manually is very hard work, especially if you have no
    experience doing it.
    Take a look at either google maps or MS virtual earth. you would need
    internet connection to run the application though.

  • Paul E Collins

    #2
    Re: Need some graphical advice

    "MrNobody" <MrNobody@discu ssions.microsof t.comwrote:
    Are you familiar with the PaintBucket tool in Microsoft's Paint
    application? Basically I would need the same exact algorithm for when
    I need to fill states in with color... when the user clicks a spot
    within the state's boundary (mapped from the bitmap file) it's just as
    if someone using Paint used the PaintBucket on a solid colored shape.
    Use a flood fill algorithm. Keep a list of "points that need to be
    coloured", and each time add all the uncoloured points immediately
    surrounding points already in the list. Stop at the state boundaries.

    Eq.


    Comment

    Working...