WmfMetafileEscapes

WmfMetafileEscapes enumeration

The MetafileEscapes Enumeration specifies printer driver functionality that might not be directly accessible through WMF records defined in the RecordType Enumeration (section 2.1.1.1).

public enum WmfMetafileEscapes

Values

NameValueDescription
Newframe1Notifies the printer driver that the application has finished writing to a page.
Abortdoc2Stops processing the current document.
Nextband3Notifies the printer driver that the application has finished writing to a band.
Setcolortable4Sets color table values.
Getcolortable5Gets color table values.
Flushout6Causes all pending output to be flushed to the output device.
Draftmode7Indicates that the printer driver SHOULD print text only, and no graphics.
Queryescsupport8Queries a printer driver to determine whether a specific escape function is supported on the output device it drives.
Setabortproc9Sets the application-defined function that allows a print job to be canceled during printing.
Startdoc10Notifies the printer driver that a new print job is starting.
Enddoc11Notifies the printer driver that the current print job is ending.
Getphyspagesize12Retrieves the physical page size currently selected on an output device.
Getprintingoffset13Retrieves the offset from the upper-left corner of the physical page where the actual printing or drawing begins.
Getscalingfactor14Retrieves the scaling factors for the x-axis and the y-axis of a printer.
MetaEscapeEnhancedMetafile15Used to embed an enhanced metafile format (EMF) metafile within a WMF metafile.
Setpenwidth16Sets the width of a pen in pixels.
Setcopycount17Sets the number of copies.
Setpapersource18Sets the source, such as a particular paper tray or bin on a printer, for output forms.
Passthrough19This record passes through arbitrary data.
Gettechnology20Gets information concerning graphics technology that is supported on a device.
Setlinecap21Specifies the line-drawing mode to use in output to a device.
Setlinejoin22Specifies the line-joining mode to use in output to a device.
Setmiterlimit23Sets the limit for the length of miter joins to use in output to a device.
Bandinfo24Retrieves or specifies settings concerning banding on a device, such as the number of bands.
Drawpatternrect25Draws a rectangle with a defined pattern.
Getvectorpensize26Retrieves the physical pen size currently defined on a device.
Getvectorbrushsize27Retrieves the physical brush size currently defined on a device.
Enableduplex28Enables or disables double-sided (duplex) printing on a device.
Getsetpaperbins29Retrieves or specifies the source of output forms on a device.
Getsetprintorient30Retrieves or specifies the paper orientation on a device.
Enumpaperbins31Retrieves information concerning the sources of different forms on an output device.
Setdibscaling32Specifies the scaling of device-independent bitmaps (DIBs).
Epsprinting33Indicates the start and end of an encapsulated PostScript (EPS) section.
Enumpapermetrics34Queries a printer driver for paper dimensions and other forms data.
Getsetpapermetrics35Retrieves or specifies paper dimensions and other forms data on an output device.
PostscriptData37Sends arbitrary PostScript data to an output device.
PostscriptIgnore38Notifies an output device to ignore PostScript data.
Getdeviceunits42Gets the device units currently configured on an output device.
Getextendedtextmetrics256Gets extended text metrics currently configured on an output device.
Getpairkerntable258Gets the font kern table currently defined on an output device.
Exttextout512Draws text using the currently selected font, background color, and text color.
Getfacename513Gets the font face name currently configured on a device.
Downloadface514Sets the font face name on a device.
MetafileDriver2049Queries a printer driver about the support for metafiles on an output device.
Querydibsupport3073Queries the printer driver about its support for DIBs on an output device.
BeginPath4096Opens a path.
ClipToPath4097Defines a clip region that is bounded by a path. The input MUST be a 16-bit quantity that defines the action to take.
EndPath4098Ends a path.
OpenChannel4110The same as STARTDOC specified with a NULL document and output filename, data in raw mode, and a type of zero.
Downloadheader4111Instructs the printer driver to download sets of PostScript procedures.
CloseChannel4112The same as ENDDOC. See OPEN_CHANNEL.
PostscriptPassthrough4115Sends arbitrary data directly to a printer driver, which is expected to process this data only when in PostScript mode. PostscriptIdentify.
EncapsulatedPostscript4116Sends arbitrary data directly to the printer driver.
PostscriptIdentify4117Sets the printer driver to either PostScript or GDI mode.
PostscriptInjection4118Inserts a block of raw data into a PostScript stream. The input MUST be a 32-bit quantity specifying the number of bytes to inject, a 16-bit quantity specifying the injection point, and a 16-bit quantity specifying the page number, followed by the bytes to inject.
Checkjpegformat4119Checks whether the printer supports a JPEG image.
Checkpngformat4120Checks whether the printer supports a PNG image.
GetPsFeaturesetting4121Gets information on a specified feature setting for a PostScript printer driver.
MxdcEscape4122Enables applications to write documents to a file or to a printer in XML Paper Specification (XPS) format.
Spclpassthrough24568Enables applications to include private procedures and other arbitrary data in documents.

See Also