Posted on 2005-04-19
I want to draw some object (for example, line) in the form client area using standard (non-Windows) coordinate system. (0,0) point should be in the left-bottom corner of the window, X axis goes right, Y axis goes up. How can I transform coordinate system inside of Paint event handler for Graphics object?
Having point coordinates in some other function (for example, MouseDown event handler), how can I convert this point to the same coordinate system which is used for drawing?