Change the coordinate system of a Canvas in WPF

后端 未结 8 1867
一整个雨季
一整个雨季 2021-02-01 06:59

I\'m writing a mapping app that uses a Canvas for positioning elements. For each element I have to programatically convert element\'s Lat/Long to the canvas\' coordinate, then

8条回答
  •  轮回少年
    2021-02-01 07:14

    i have nearly the same problem. so i went online. and this guy uses matrix to transform from 'device pixel' to what he calls 'world coordinates' and by that he means real world numbers instead of 'device pixels' see the link

    http://csharphelper.com/blog/2014/09/use-transformations-draw-graph-wpf-c/

提交回复
热议问题