3.1.1.2.1 Regions

The Regions group of elements control the output area and clipping properties in the playback device context.

Element name

Type

Set by

Clipping

RegionData (section 2.2.24)

EMR_EXCLUDECLIPRECT (section 2.3.2.1)

EMR_EXTSELECTCLIPRGN (section 2.3.2.2)

EMR_INTERSECTCLIPRECT (section 2.3.2.3)

EMR_OFFSETCIPRGN (section 2.3.2.4)

MetaClipping

RegionData

EMR_SETMETARGN (section 2.3.2)

Viewport

UINT8[16]

EMR_SCALEVIEWPORTEXTEX (section 2.3.11.7)

EMR_SETVIEWPORTEXTEX (section 2.3.11.28)

EMR_SETVIEWPORTORGEX (section 2.3.11.29)

Window

UINT8[16]

EMR_SCALEWINDOWEXTEX (section 2.3.11.8)

EMR_SETWINDOWEXTEX (section 2.3.11.30)

EMR_SETWINDOWORGEX (section 2.3.11.31)

Clipping: The current clipping region, which with MetaClipping defines the bounds of the drawing area. The default value for the Clipping element is implementation-specific.<92>

MetaClipping: The current metaregion, which with the Clipping region defines the bounds of the drawing area.

Viewport: A rectangular drawing area using coordinates in the device space.

Element name

Type

Set by

Extent

SizeL ([MS-WMF] section 2.2.2.22)

EMR_SCALEVIEWPORTEXTEX

EMR_SETVIEWPORTEXTEX

Origin

PointL ([MS-WMF] section 2.2.2.15)

EMR_SETVIEWPORTORGEX

Extent: Horizontal and vertical sizes of the drawing area in device units.

Origin: Point value of the origin of the drawing area in device units.

Window: A rectangular drawing area using the coordinates of the page space.

Element name

Type

Set by

Extent

SizeL

EMR_SCALEWINDOWEXTEX

EMR_SETWINDOWEXTEX

Origin

PointL

EMR_SETWINDOWORGEX

Extent: Horizontal and vertical sizes of the drawing area in logical units.

Origin: Point value of the origin of the drawing area in logical units.