I am starting to work with images in WPF and I am using the next pice of code …
<LineSegment Point="100,-100"/>
</PathFigure>
</PathGeometry>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
How ever it seems like the x,y coordinate system is backwards i mean, I learn in math that in the coordinate plane starts at zero at the bottom and goes up higher on the y axis but in WPF it is the reverse. Zero is at the top of the screen and goes up and you go down the y axis
I read about this in a book and in internet but i do not seem to find the logic of this … any comments why the WPF use this logic?
Thanks !!!!
As far as I know, it’s been convention since the early days of graphical computing to measure coordinates from the top-left. Sure, in maths we generally have the origin in the bottom-left, but then it is from the top-left we read (at least in English and other Western languages).