2.3.4 Object Record Types

This section defines the Object Record Types, which create and manage the graphics objects specified in the Playback Device Context (section 3.1.5).

The following are the Object Record Types.

Name

Section

Description

META_CREATEBRUSHINDIRECT

2.3.4.1

Creates a Brush Object (section 2.2.1.11) from a LogBrush Object (section 2.2.2.10).

META_CREATEFONTINDIRECT

2.3.4.2

Creates a Font Object (section 2.2.1.2).

META_CREATEPALETTE

2.3.4.3

Creates a Palette Object (section 2.2.1.3).

META_CREATEPATTERNBRUSH

2.3.4.4

 Creates a Brush Object with a pattern specified by a bitmap.

META_CREATEPENINDIRECT

2.3.4.5

Creates a Pen Object (section 2.2.1.4).

META_CREATEREGION

2.3.4.6

Creates a Region Object (section 2.2.1.5).

META_DELETEOBJECT

2.3.4.7

Deletes an existing object.

META_DIBCREATEPATTERNBRUSH

2.3.4.8

Creates a Brush Object with a pattern specified by a DIB.

META_SELECTCLIPREGION

2.3.4.9

Specifies the clipping region in the playback device context with a specified Region Object.

META_SELECTOBJECT

2.3.4.10

Specifies a graphics object in the playback device context.

META_SELECTPALETTE

2.3.4.11

Specifies the palette in the playback device context with a specified Palette Object.

Whenever a graphics object is created by one of the preceding metafile records, the following actions are implied:

  • The object MUST always be assigned the lowest-numbered available index in the WMF Object Table (section 3.1.4.1).

  • Subsequent WMF records MUST refer to the object by its assigned WMF Object Table index.

  • The object MUST NOT be used in drawing operations until a META_SELECTOBJECT Record (section 2.3.4.10) is received that specifies the object's index.

  • The object MUST remain available for selection until a META_DELETEOBJECT Record (section 2.3.4.7) is received that specifies the object's index.

For further information concerning object indexes and the WMF Object Table, see Managing Objects (section 3.1.4).