2.3.7.7 EMR_CREATEPEN Record
The EMR_CREATEPEN record defines a logical pen for graphics operations.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type |
|||||||||||||||||||||||||||||||
Size |
|||||||||||||||||||||||||||||||
ihPen |
|||||||||||||||||||||||||||||||
LogPen |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
Type (4 bytes): An unsigned integer that identifies this record type as EMR_CREATEPEN. This value is 0x00000026.
Size (4 bytes): An unsigned integer that specifies the size in bytes, of this record. This value is 0x0000001C.
ihPen (4 bytes): An unsigned integer that specifies the index of the logical pen object in the EMF object table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.
LogPen (16 bytes): A LogPen object (section 2.2.19) that specifies the style, width, and color of the logical pen.
The logical pen object defined by this record can be selected into the playback device context by an EMR_SELECTOBJECT record (section 2.3.8.5), which specifies the logical pen to use in subsequent graphics operations.
See section 2.3.7 for more object creation record types.