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 |
Stops processing the current document. |
|
BEGIN_PATH |
Opens a path. |
|
CHECKJPEGFORMAT |
Determines whether it can handle the given JPEG image. |
|
CHECKPNGFORMAT |
Determines whether it can handle the given PNG image. |
|
CLIP_TO_PATH |
Applies a function to the current PostScript clipping path. |
|
CLOSECHANNEL |
Same as ENDDOC. |
|
DOWNLOADFACE |
Sets the font face name on the output device. |
|
DOWNLOADHEADER |
Downloads sets of PostScript procedures. |
|
DRAWPATTERNRECT |
Draws a rectangle with a defined pattern. |
|
ENCAPSULATED_POSTSCRIPT |
Sends arbitrary encapsulated PostScript (EPS) data directly to the printer driver. |
|
END_PATH |
Ends a path. |
|
ENDDOC |
Notifies the printer driver that a new print job is ending. |
|
EPSPRINTING |
Indicates the start and end of EPS printing. |
|
EXTTEXTOUT |
Draws text using the currently selected font, background color, and text color. |
|
GETCOLORTABLE |
Gets color table values from the printer driver. |
|
GETDEVICEUNITS |
Gets the device units currently configured on the output device. |
|
GETEXTENDEDTEXTMETRICS |
Gets the extended text metrics that are currently configured on the printer driver. |
|
GETFACENAME |
Gets the font face name currently configured on the output device. |
|
GETPAIRKERNTABLE |
Gets the font kern table currently defined on the output device. |
|
GETPHYSPAGESIZE |
Retrieves the physical page size currently selected on the output device. |
|
GETPRINTINGOFFSET |
Retrieves the offset from the upper-left corner of the physical page where the actual printing or drawing begins. |
|
GET_PS_FEATURESETTING |
Queries the printer driver for information about PostScript features supported on the output device. |
|
GETSCALINGFACTOR |
Retrieves the scaling factors for the x-axis and the y-axis of a printer. |
|
META_ESCAPE_ENHANCED_METAFILE |
||
METAFILE_DRIVER |
Queries the printer driver about its support for metafiles on the output device. |
|
NEWFRAME |
Notifies the printer driver that the application has finished writing to a page. |
|
NEXTBAND |
Notifies the printer driver that the application has finished writing to a band. |
|
PASSTHROUGH |
Passes through arbitrary data to the printer driver. |
|
POSTSCRIPT_DATA |
Sends arbitrary PostScript data to the output device. |
|
POSTSCRIPT_IDENTIFY |
Sets the printer driver to either PostScript-centric or GDI-centric mode. |
|
POSTSCRIPT_IGNORE |
Notifies the output device to ignore PostScript data. |
|
POSTSCRIPT_INJECTION |
Inserts a block of raw data into a PostScript stream. |
|
POSTSCRIPT_PASSTHROUGH |
Sends arbitrary data directly to a printer driver, which is expected to process this data only when in PostScript mode. |
|
OPENCHANNEL |
Acts the same as STARTDOC, with a NULL document and output filename, and data in raw mode. |
|
QUERYDIBSUPPORT |
Queries the printer driver about its support for DIBs on the output device. |
|
QUERYESCSUPPORT |
Queries the printer driver to determine whether a specific WMF escape function is supported on the output device. |
|
SETCOLORTABLE |
Sets color table values. |
|
SETCOPYCOUNT |
Sets the number of copies. |
|
SETLINECAP |
Specifies the line-ending mode to use in drawing to the output device. |
|
SETLINEJOIN |
Specifies the line-joining mode to use in drawing to the output device. |
|
SETMITERLIMIT |
Sets the limit for the length of miter joins to use in drawing to the output device. |
|
SPCLPASSTHROUGH2 |
Enables documents to include private procedures and other arbitrary data in documents. |
|
STARTDOC |
Notifies the printer driver that a new print job is starting. |