Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Windows Metafile
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===EMF=== {{Infobox file format | name = Enhanced Metafile | icon = | logo = | extension = .emf | mime = image/emf<ref name="rfc7903"/> | type code = | uniform type = com.microsoft.emf<ref name="rfc7903"/> | magic = | released = | latest release version = | latest release date = | type = [[Vector graphics]] | container for = | contained by = | extended from = [[#WMF|WMF]] | extended to = [[#EMF+|EMF+]] | standard = | open = | free = }} [[File:EMF headers.svg|thumb|upright=1.5|Windows Enhanced Metafile headers]] EMF files have three possible versions of headers. The original headers is just a container for images, the second and third version encapsulates the original header and contains a pixel format record and support for OpenGL records, and the third version encapsulates the second header extension and increases EMF accuracy and scalability of EMFs as it adds the ability to measure distances of device surfaces using the metric system.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-EMF/%5bMS-EMF%5d.pdf|title=<nowiki>[MS-EMF]:</nowiki> Enhanced Metafile Format|publisher=Microsoft|pages=17β18|section=1.3.1. Metafile Structure}}</ref> Each EMF header starts with an EMR_HEADER record, and records the relevant properties of the device on which the metafile image was recorded. The original EMF header has an 80 byte header and an optional variable length description string.<ref>{{citation|url= https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-EMF/%5bMS-EMF%5d.pdf|title=<nowiki>[MS-EMF]:</nowiki> Enhanced Metafile Format|publisher=Microsoft|page=120|section=2.3.4.2.1 EmfMetafileHeader Record}}</ref> Other metafiles contain extension fields, which encapsulate the original header. <code>EmfMetafileHeaderExtension1</code> is a record that is inserted directly after the original EMF header, specifies whether there is a pixel format descriptor and the offset to the descriptor object within the header, as well as a field that specifies if [[OpenGL]] records exist in the metafile.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-EMF/%5bMS-EMF%5d.pdf|title=<nowiki>[MS-EMF]:</nowiki> Enhanced Metafile Format|publisher=Microsoft|pages=57β58|section=2.2.10 HeaderExtension1 Object}}</ref> The pixel format descriptor specifies the capabilities of the drawing surface and whether a pixel is encoded in [[RGBA color model|RGBA]] or is an index into a color table.<ref>{{citation|url= https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-EMF/%5bMS-EMF%5d.pdf|title=<nowiki>[MS-EMF]:</nowiki> Enhanced Metafile Format|publisher=Microsoft|pages=68β71|section=2.2.22 PixelFormatDescriptor Object}}</ref> <code>EmfMetafileHeaderExtension2</code> is a record that is inserted directly after the <code>EmfMetafileHeaderExtension1</code> record, and it contains two fields with the X and Y values to measure the device surface in micrometers.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-EMF/%5bMS-EMF%5d.pdf|title=<nowiki>[MS-EMF]:</nowiki> Enhanced Metafile Format|publisher=Microsoft|pages=122β124|section=2.3.4.2.3 EmfMetafileHeaderExtension2 Record}}</ref> Like WMF files, records can be classified by function, however there are more record types in EMF files than there are in WMF files. Records can be classified as control, bitmap, clipping, comment, drawing, escape, object creation, object manipulation, OpenGL, path bracket, state and transform records.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)