Interactive (Interactive) Map

I have a camping map, here it is:

enter image description here

Now on this map there are many places for camping. And all places (yellow, pink and striped yellow) should be available for viewing.

So my question is: how do I achieve this? I was thinking about using SVG or something like that. This is a good decision?

0
source share
2 answers

Main idea: create a color map to see which point the user clicked on.

To create this color map, start with the original map, overlay it on a blank bitmap and write a small tool application to help you:

  • .
  • .
  • .
  • , ; eyedropper, , .
  • ,

  • MouseClick PictureBox,
  • ( ) ,
  • GetPixel , ,
  • .

ARGB 3 ; , - .

1f * PictureBox.clientSize.Width / PictureBox.Image.Width.

PictureBox.MouseMove , , mouse cursor betwenn Hand Default , , .. .

, PNG, JPG!

, ( ) Place Dictionary<Color, Place> Place Color..

0

PictureBox, , MouseClick.

0

Source: https://habr.com/ru/post/1666410/


All Articles