I'm having problems visualizing in my mind the physical relationship between logical coordinates and device coordinates when using the mapping modes MM_ANISOTROPIC / MM_ISOTROPIC and the CDC:SetWindowExt() and SetViewportExt() member functions to customize screen coordinates.
I am trying to draw a graph on a window, with the origin in the bottom left of the window (instead of the upper left) and with the appropriate units to fit my entire graph (ie. so that no data gets drawn off screen). However, I absolutely can't figure out the purpose of the CDC:SetWindowExt() and SetViewportExt() functions and how their arguments affect the coordinates on the screen.
The more books I read about it, the more confused I get. Any help would be very much appreciated. Thanks,
Nikolai.
I am trying to draw a graph on a window, with the origin in the bottom left of the window (instead of the upper left) and with the appropriate units to fit my entire graph (ie. so that no data gets drawn off screen). However, I absolutely can't figure out the purpose of the CDC:SetWindowExt() and SetViewportExt() functions and how their arguments affect the coordinates on the screen.
The more books I read about it, the more confused I get. Any help would be very much appreciated. Thanks,
Nikolai.