JustJeff
JustJeff

Reputation: 12980

Isn't there some way to cause win32 GDI calls to interpret coordinates differently?

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

Answers (2)

SmacL
SmacL

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

GSerg
GSerg

Reputation: 78165

You're probably thinking about the SetViewportOrgEx function.

Upvotes: 0

Related Questions