Top Qs
Timeline
Obrolan
Perspektif
Windows Metafile
Dari Wikipedia, ensiklopedia bebas
Remove ads
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 + .
Name | Description |
ABORTDOC | Stops processing the current document.[1] |
BEGIN_PATH | Opens a path.[2] |
CHECK_JPEGFORMAT | Determines whether it can handle the given JPEG image.[3] |
CHECK_PNGFORMAT | Determines whether it can handle the given PNG image.[4] |
CLIP_TO_PATH | Applies a function to the current PostScript clipping path.[5] |
CLOSE_CHANNEL | Same as ENDDOC.[6] |
DOWNLOAD_FACE | Sets the font face name on the output device.[7] |
DOWNLOAD_HEADER | Downloads sets of PostScript procedures.[8] |
DRAW_PATTERNRECT | Draws a rectangle with a defined pattern.[9] |
ENCAPSULATED_POSTSCRIPT | Sends arbitrary encapsulated PostScript (EPS) data directly to the printer driver.[10] |
END_PATH | Ends a path.[11] |
ENDDOC | Notifies the printer driver that a new print job is ending.[12] |
EPS_PRINTING | Indicates the start and end of EPS printing.[13] |
EXTTEXTOUT | Draws text using the currently selected font, background color, and text color.[14] |
GET_COLORTABLE | Gets color table values from the printer driver.[15] |
GET_DEVICEUNITS | Gets the device units currently configured on the output device.[16] |
GET_EXTENDED_TEXTMETRICS | Gets the extended text metrics that are currently configured on the printer driver.[17] |
GET_FACENAME | Gets the font face name currently configured on the output device.[18] |
GET_PAIRKERNTABLE | Gets the font kern table currently defined on the output device.[19] |
GET_PHYSPAGESIZE | Retrieves the physical page size currently selected on the output device.[20] |
GET_PRINTINGOFFSET | Retrieves the offset from the upper-left corner of the physical page where the actual printing or drawing begins.[21] |
GET_PS_FEATURESETTING | Queries the printer driver for information about PostScript features supported on the output device.[22] |
GET_SCALINGFACTOR | Retrieves the scaling factors for the x-axis and the y-axis of a printer.[23] |
META_ESCAPE_ENHANCED_METAFILE | Used to embed an EMF metafile within a WMF metafile.[24] |
METAFILE_DRIVER | Queries the printer driver about its support for metafiles on the output device.[25] |
NEWFRAME | Notifies the printer driver that the application has finished writing to a page.[26] |
NEXTBAND | Notifies the printer driver that the application has finished writing to a band.[27] |
PASSTHROUGH | Passes through arbitrary data to the printer driver.[28] |
POSTSCRIPT_DATA | Sends arbitrary PostScript data to the output device.[29] |
POSTSCRIPT_IDENTIFY | Sets the printer driver to either PostScript-centric or GDI-centric mode.[30] |
POSTSCRIPT_IGNORE | Notifies the output device to ignore PostScript data.[31] |
POSTSCRIPT_INJECTION | Inserts a block of raw data into a PostScript stream.[32] |
POSTSCRIPT_PASSTHROUGH | Sends arbitrary data directly to a printer driver, which is expected to process this data only when in PostScript mode.[33] |
OPEN_CHANNEL | Acts the same as STARTDOC, with a NULL document and output filename, and data in raw mode.[34] |
QUERY_DIBSUPPORT | Queries the printer driver about its support for DIBs on the output device.[35] |
QUERY_ESCSUPPORT | Queries the printer driver to determine whether a specific WMF escape function is supported on the output device.[36] |
SET_COLORTABLE | Sets color table values.[37] |
SET_COPYCOUNT | Sets the number of copies.[38] |
SET_LINECAP | Specifies the line-ending mode to use in drawing to the output device.[39] |
SET_LINEJOIN | Specifies the line-joining mode to use in drawing to the output device.[40] |
SET_MITERLIMIT | Sets the limit for the length of miter joins to use in drawing to the output device.[41] |
SPCLPASSTHROUGH2 | Enables documents to include private procedures and other arbitrary data in documents.[42] |
STARTDOC | Notifies the printer driver that a new print job is starting.[43] |
Pada dasarnya, metafile menyimpan daftar record yang terdiri dari perintah gambar, definisi properti, dan objek grafik untuk menampilkan gambar di layar.[44] 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 + .
Remove ads
Sejarah
Ringkasan
Perspektif
Format file WMF 16 bit asli sepenuhnya ditentukan dalam volume 4 dokumentasi SDK Windows 3.1 1992 [45] (setidaknya jika digabungkan dengan deskripsi fungsi dan struktur individu di volume lain), tetapi spesifikasi itu tidak jelas tentang a sedikit detail. Manual ini diterbitkan sebagai buku cetak yang tersedia di toko buku tanpa klik melalui EULA atau batasan lisensi tidak biasa lainnya (hanya peringatan umum bahwa jika dibeli sebagai bagian dari bundel perangkat lunak, perangkat lunak akan tunduk pada salah satunya).
Seiring waktu keberadaan spesifikasi bersejarah itu sebagian besar dilupakan dan beberapa implementasi alternatif menggunakan rekayasa terbalik untuk mengetahui format file dari file WMF yang ada, yang sulit dan rawan kesalahan. Pada bulan September 2006, Microsoft kembali menerbitkan spesifikasi format file WMF dalam bentuk yang lebih lengkap dalam konteks Microsoft Open Specification Promise , berjanji untuk tidak menegaskan hak paten kepada pelaksana format file.
Microsoft kemudian menghentikan file WMF dan mendukung file EMF 32-bit karena file WMF memiliki masalah nyata dengan kemandirian perangkat, meskipun menggunakan header file "placeable" yang memberikan kemandirian perangkat dasar. Microsoft menemukan bahwa pengembang yang menggunakan format tersebut adalah "[embedding] aplikasi, lokasi, atau komentar skala di metafile ... Yang lain menambahkan header ke metafile yang menyediakan berbagai informasi khusus aplikasi", menyebabkan masalah kompatibilitas utama. Jadi, pada tahun 1992 dengan Windows NT 3.1 , Microsoft memperkenalkan format Enhanced Metafile (EMF) - format yang didasarkan pada Win32 API dan yang mereka gunakan untuk kemandirian perangkat bawaan. - ini juga dikenal sebagai metafile NT. Dengan dirilisnya Windows XP dan GDI +, kumpulan catatan harus ditingkatkan secara signifikan sehingga Microsoft merilis EMF + sebagai perpanjangan dari format file EMF yang ada.
Remove ads
Struktur metafile
Pranala luar
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads