2.3.12 Transform Record Types

The transform record types specify and modify world-space to page-space transforms.

The following are EMF transform record types.

Name

Section

Description

EMR_MODIFYWORLDTRANSFORM

2.3.12.1

Modifies the current world-space to page-space transform.

EMR_SETWORLDTRANSFORM

2.3.12.2

Specifies a two-dimensional linear transform between world space and page space.

The generic structure of EMF transform records is specified as follows.


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

Xform (24 bytes)

...

...

...

TransformData (optional)

Type (4 bytes): An unsigned integer that defines the type of record. The transform record types are listed in the following table. See the preceding table for descriptions of these record types.

Name

Value

EMR_SETWORLDTRANSFORM

0x00000023

EMR_MODIFYWORLDTRANSFORM

0x00000024

Size (4 bytes): An unsigned integer that specifies the size in bytes of this record in the metafile. This value MUST be a multiple of 4 bytes.

Xform (24 bytes): An XForm object (section 2.2.28), which defines a world-space to page-space transform.

TransformData (4 bytes, optional): An unsigned integer that specifies an additional parameter for the record.

 See section 2.3 for more EMF record types.