61.4.9 Mapping

Mapping functions alter and retrieve information about the GDI mapping modes. In order to maintain device independence, GDI creates output in a logical space and maps it to the display. The mapping mode defines the relationship between units in the logical space and pixels on a device. The following list briefly describes each mapping function:

Function Description

DPtoLP Converts device points (that is,points relative to the window origin) into logical points
GetMapMode Retrieves the current mapping mode
GetViewportExtEx Retrieves a device context's viewport extents
GetViewportOrgEx Retrieves a device context's viewport origin
GetWindowExtEx Retrieves a device context's window extents
GetWindowOrgEx Retrieves a device context's window origin
GetWorldTransform Returns the current world transform
LPtoDP Converts logical points into device points
ModifyWorldTransform Changes the current world transform
OffsetViewportOrgEx Modifies a viewport origin
OffsetWindowOrgEx Modifies a window origin
ScaleViewportExtEx Modifies the viewport extents
ScaleWindowExtEx Modifies the window extents
SetMapMode Sets the mapping mode of a specified device context
SetViewportExtEx Sets a device context's viewport extents
SetViewportOrgEx Sets a device context's viewport origin
SetWindowExtEx Sets a device context's window extents
SetWindowOrgEx Sets a device context's window origin
SetWorldTransform Sets the current world transform