Windows Metafile

| --- | --- |
Name: Description
ABORTDOC: Stops processing the current document.
BEGIN_PATH: Opens a path.
CHECK_JPEGFORMAT: Determines whether it can handle the given JPEG image.
CHECK_PNGFORMAT: Determines whether it can handle the given PNG image.
CLIP_TO_PATH: Applies a function to the current PostScript clipping path.
CLOSE_CHANNEL: Same as ENDDOC.
DOWNLOAD_FACE: Sets the font face name on the output device.
DOWNLOAD_HEADER: Downloads sets of PostScript procedures.
DRAW_PATTERNRECT: 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.
EPS_PRINTING: Indicates the start and end of EPS printing.
EXTTEXTOUT: Draws text using the currently selected font, background color, and text color.
GET_COLORTABLE: Gets color table values from the printer driver.
GET_DEVICEUNITS: Gets the device units currently configured on the output device.
GET_EXTENDED_TEXTMETRICS: Gets the extended text metrics that are currently configured on the printer driver.
GET_FACENAME: Gets the font face name currently configured on the output device.
GET_PAIRKERNTABLE: Gets the font kern table currently defined on the output device.
GET_PHYSPAGESIZE: Retrieves the physical page size currently selected on the output device.
GET_PRINTINGOFFSET: 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.
GET_SCALINGFACTOR: Retrieves the scaling factors for the x-axis and the y-axis of a printer.
META_ESCAPE_ENHANCED_METAFILE: Used to embed an EMF metafile within a WMF 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.
OPEN_CHANNEL: Acts the same as STARTDOC, with a NULL document and output filename, and data in raw mode.
QUERY_DIBSUPPORT: Queries the printer driver about its support for DIBs on the output device.
QUERY_ESCSUPPORT: Queries the printer driver to determine whether a specific WMF escape function is supported on the output device.
SET_COLORTABLE: Sets color table values.
SET_COPYCOUNT: Sets the number of copies.
SET_LINECAP: Specifies the line-ending mode to use in drawing to the output device.
SET_LINEJOIN: Specifies the line-joining mode to use in drawing to the output device.
SET_MITERLIMIT: 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.
Windows Metafile ( WMF ) adalah format file gambar yang awalnya dirancang untuk Microsoft Windows pada tahun 1990-an. Format Windows Metafile asli tidak bergantung pada perangkat (meskipun bisa dibuat lebih dengan header penempatan) dan mungkin berisi grafik vektor dan komponen bitmap . Itu bertindak dengan cara yang mirip dengan file SVG . File WMF kemudian digantikan oleh Enhanced Metafiles (file EMF) yang menyediakan kemandirian perangkat. File EMF kemudian ditingkatkan sendiri melalui file EMF + .
Pada dasarnya, metafile menyimpan daftar record yang terdiri dari perintah gambar, definisi properti, dan objek grafik untuk menampilkan gambar di layar. Perintah menggambar yang digunakan terkait erat dengan perintah API Antarmuka Perangkat Grafik (GDI) yang digunakan untuk menggambar di Microsoft Windows.
Ada tiga jenis utama metafile - WMF adalah format 16-bit yang diperkenalkan di Windows 3.0 . Ini adalah format vektor asli untuk aplikasi Microsoft Office seperti Word , PowerPoint , dan Publisher . Mulai 2017 revisi 14 dari spesifikasi Windows Metafile Format tersedia untuk dibaca online atau diunduh sebagai PDF.  File EMF, yang menggantikan file WMF, bekerja dengan prinsip yang sama hanya saja itu adalah format file 32-bit yang juga memungkinkan penyematan data pribadi dalam catatan "komentar".  EMF + adalah ekstensi untuk file EMF dan disematkan dalam catatan komentar ini, memungkinkan gambar dan teks menggunakan perintah, objek, dan properti yang mirip dengan Windows GDI + .