2.3.11.19 EMR_SETMAPMODE Record

The EMR_SETMAPMODE record specifies the current mapping mode, which specifies the unit of measure used to transform page space units into device space units, and also specifies the orientation of the device's x-axis and y-axis.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Size

MapMode

Type (4 bytes): An unsigned integer that identifies this record type as EMR_SETMAPMODE. This value is 0x00000011.

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes.

MapMode (4 bytes): An unsigned integer from the MapMode enumeration (section 2.1.21).

MM_TEXT mode allows applications to work in device pixels, whose size varies from device to device.

The MM_HIENGLISH, MM_HIMETRIC, MM_LOENGLISH, MM_LOMETRIC, and MM_TWIPS modes are useful for applications drawing in physically meaningful units such as inches or millimeters.

MM_ISOTROPIC mode ensures a 1:1 aspect ratio.

MM_ANISOTROPIC mode allows the x-coordinates and y-coordinates to be adjusted independently.

See section 2.3.11 for more state record types.