开发者

Mapping areas of Image

开发者 https://www.devze.com 2023-03-19 07:18 出处:网络
In my desktop application i want to place a country map and states clickable. On clicking certain state the color 开发者_StackOverflow中文版of state should change and it should show some state specifi

In my desktop application i want to place a country map and states clickable. On clicking certain state the color 开发者_StackOverflow中文版of state should change and it should show some state specific info.

What will be the best approach to do it?

-HD


WPF shapes such as the Path are clickable so it is relatively easy to capture a click on a state and change the fill of the shape. The hard part is drawing all the shapes.


You can make image maps with GIMP. Go here for an official tutorial from GIMP: http://www.gimp.org/tutorials/Image_Map/

Now, you'll have to figure the rest out in the programming language you are using. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号