In the 2D graphics world, WPF uses the top-left corner of the window as its point of origin (0,0). However, you can easily change the coordinate system to match your needs, such as switching to the Cartesian Coordinate system. Doing this simply requires using Transformations to reposition all the necessary elements.
The code below demonstrates how this is accomplished and the image shows what happens as each transformation is applied to the Canvas element.
No comments:
Post a Comment