2.3.6 Escape Record Types

This section defines the Escape Record Types, which specify extensions to metafile functionality. The generic format of all escape records is specified by the META_ESCAPE Record (section 2.3.6.1).

The following are the Escape Record Types.

Name

Section

Description

ABORTDOC

2.3.6.2

Stops processing the current document.

BEGIN_PATH

2.3.6.3

Opens a path.

CHECKJPEGFORMAT

2.3.6.4

Determines whether it can handle the given JPEG image.

CHECKPNGFORMAT

2.3.6.5

Determines whether it can handle the given PNG image.

CLIP_TO_PATH

2.3.6.6

Applies a function to the current PostScript clipping path.

CLOSECHANNEL

2.3.6.7

Same as ENDDOC.

DOWNLOADFACE

2.3.6.8

Sets the font face name on the output device.

DOWNLOADHEADER

2.3.6.9

Downloads sets of PostScript procedures.

DRAWPATTERNRECT

2.3.6.10

Draws a rectangle with a defined pattern.

ENCAPSULATED_POSTSCRIPT

2.3.6.11

Sends arbitrary encapsulated PostScript (EPS) data directly to the printer driver.

END_PATH

2.3.6.12

Ends a path.

ENDDOC

2.3.6.13

Notifies the printer driver that a new print job is ending.

EPSPRINTING

2.3.6.14

Indicates the start and end of EPS printing.

EXTTEXTOUT

2.3.6.15

Draws text using the currently selected font, background color, and text color.

GETCOLORTABLE

2.3.6.16

Gets color table values from the printer driver.

GETDEVICEUNITS

2.3.6.17

Gets the device units currently configured on the output device.

GETEXTENDEDTEXTMETRICS

2.3.6.18

Gets the extended text metrics that are currently configured on the printer driver.

GETFACENAME

2.3.6.19

Gets the font face name currently configured on the output device.

GETPAIRKERNTABLE

2.3.6.20

Gets the font kern table currently defined on the output device.

GETPHYSPAGESIZE

2.3.6.21

Retrieves the physical page size currently selected on the output device.

GETPRINTINGOFFSET

2.3.6.22

Retrieves the offset from the upper-left corner of the physical page where the actual printing or drawing begins.

GET_PS_FEATURESETTING

2.3.6.23

Queries the printer driver for information about PostScript features supported on the output device.

GETSCALINGFACTOR

2.3.6.24

Retrieves the scaling factors for the x-axis and the y-axis of a printer.

META_ESCAPE_ENHANCED_METAFILE

2.3.6.25

Used to embed an EMF metafile within a WMF metafile.

METAFILE_DRIVER

2.3.6.26

Queries the printer driver about its support for metafiles on the output device.

NEWFRAME

2.3.6.27

Notifies the printer driver that the application has finished writing to a page.

NEXTBAND

2.3.6.28

Notifies the printer driver that the application has finished writing to a band.

PASSTHROUGH

2.3.6.29

Passes through arbitrary data to the printer driver.

POSTSCRIPT_DATA

2.3.6.30

Sends arbitrary PostScript data to the output device.

POSTSCRIPT_IDENTIFY

2.3.6.31

Sets the printer driver to either PostScript-centric or GDI-centric mode.

POSTSCRIPT_IGNORE

2.3.6.32

Notifies the output device to ignore PostScript data.

POSTSCRIPT_INJECTION

2.3.6.33

Inserts a block of raw data into a PostScript stream.

POSTSCRIPT_PASSTHROUGH

2.3.6.34

Sends arbitrary data directly to a printer driver, which is expected to process this data only when in PostScript mode.

OPENCHANNEL

2.3.6.35

Acts the same as STARTDOC, with a NULL document and output filename, and data in raw mode.

QUERYDIBSUPPORT

2.3.6.36

Queries the printer driver about its support for DIBs on the output device.

QUERYESCSUPPORT

2.3.6.37

Queries the printer driver to determine whether a specific WMF escape function is supported on the output device.

SETCOLORTABLE

2.3.6.38

Sets color table values.

SETCOPYCOUNT

2.3.6.39

Sets the number of copies.

SETLINECAP

2.3.6.40

Specifies the line-ending mode to use in drawing to the output device.

SETLINEJOIN

2.3.6.41

Specifies the line-joining mode to use in drawing to the output device.

SETMITERLIMIT

2.3.6.42

Sets the limit for the length of miter joins to use in drawing to the output device.

SPCLPASSTHROUGH2

2.3.6.43

Enables documents to include private procedures and other arbitrary data in documents.

STARTDOC

2.3.6.44

Notifies the printer driver that a new print job is starting.