Reputation: 12980
I would swear that I read somewhere that there's a way to cause GDI calls to treat x,y coordinates differently than the default. For instance, instead of x,y=0,0 being upper left, you could put 0,0 in the lower left, or any other corner.
I've tried digging through my books, and it's too slippery to google effectively, at least with any of the words I've brought to bear. Anyone have any ideas how to do this?
Upvotes: 0
Views: 152
Reputation: 22922
Use SetMapMode to change this, MM_TEXT is closer to pixel coordinates, MM_METRIC, MM_LOMETRIC etc... are closer to paper coordinates and have an inverted y axis.
See also GDI mapping modes explained
Upvotes: 2