How to change x,y origin of canvas to bottom left and flip the y coordinates?

前端 未结 4 849
旧巷少年郎
旧巷少年郎 2020-12-06 10:36

I have a bunch of data points that I would like to two-way bind to points on a canvas.

The points assume larger y values are reflected in an upwards direction like m

4条回答
  •  时光取名叫无心
    2020-12-06 11:02

    I tried the ScaleTransform method extensively: It does not work. It only shifts one of the 2 coordinates, never both. This, however, works as advertised:

    
    

提交回复
热议问题