3.2.6.19 EMR_EXTTEXTOUTW Example 1

This section provides an example of an EMF EMR_EXTTEXTOUTW record ([MS-EMF] section 2.3.5.8).

 00064DE0:                        54 00 00 00 A8 00 00 00 
 00064DF0:3D 01 00 00 68 01 00 00 9A 02 00 00 AB 01 00 00 
 00064E00:01 00 00 00 76 84 E1 40 47 A2 E1 40 3D 01 00 00 
 00064E10:9E 01 00 00 0F 00 00 00 4C 00 00 00 04 10 00 00 
 00064E20:00 00 00 00 00 00 00 00 78 0F 00 00 F4 0B 00 00 
 00064E30:6C 00 00 00 54 00 68 00 69 00 73 00 20 00 69 00 
 00064E40:73 00 20 00 70 00 61 00 67 00 65 00 20 00 32 00 
 00064E50:2E 00 06 00 25 00 00 00 1E 00 00 00 11 00 00 00 
 00064E60:17 00 00 00 0F 00 00 00 11 00 00 00 17 00 00 00 
 00064E70:0F 00 00 00 1E 00 00 00 1B 00 00 00 1D 00 00 00 
 00064E80:1B 00 00 00 0F 00 00 00 1E 00 00 00 0F 00 00 00 


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 (0x00000054)

Size (0x000000A8)

                                                        Bounds (0x0000013D)

... (0x00000168)

... (0x0000029A)

... (0x000001AB)

iGraphicsMode (0x00000001)

exScale (0x40E18476)

eyScale (0x40E1A247)

EmrText (variable)

...

...

Type (4 bytes): 0x00000054 identifies the record type as EMR_EXTTEXTOUTW.

Size (4 bytes): 0x000000A8 specifies the size of this record in bytes.

Bounds (16 bytes): 0x0000013D, 0x00000168, 0x0000029A, 0x000001AB values are not used.

iGraphicsMode (4 bytes): 0x00000001 specifies the GM_COMPATIBLE graphics mode ([MS-EMF] section 2.1.16).

exScale (4 bytes): 0x40E18476 specifies the X scale from Page units to .01mm units if the graphics mode is GM_COMPATIBLE.

eyScale (4 bytes): 0x40E1A247 specifies the Y scales from Page units to .01mm units if the graphics mode is GM_COMPATIBLE.

EmrText (variable): An EmrText object ([MS-EMF] section 2.2.5). This is followed by strings and spacing arrays.


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

Reference (0x0000013D)

... (0x0000019E)

Chars (0x0000000F)

offString (0x0000004C)

Options (0x00001004)

Rectangle (0x00000000)

... (0x00000000)

... (0x00000F78)

... (0x00000BF4)

offDx (0x0000006C)

text ("This is page 2.")

Reference (8 bytes): 0x0000013D, 0x0000019E specifies the coordinates of the reference point used to position the string.

Chars (4 bytes): 0x0000000F specifies the number of characters in the string.

offString (4 bytes): 0x0000004C specifies the offset to the string.

Options (4 bytes): 0x00001004 indicates that the rectangle defined in the Rectangle field is used for clipping ([MS-EMF] section 2.1.11).

Rectangle (16 bytes): 0x00000000, 0x00000000, 0x00000F78, 0x00000BF4 defines the clipping rectangle in logical units.

offDx (4 bytes): 0x0000006C specifies the offset to the intercharacter spacing array.

text (4 bytes): "This is page 2.".