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!
====Object records==== Object records create and manage graphics objects. In WMF files there are two broad categories of objects β graphics objects and structure objects. Structure objects are not explicitly created or deleted in a WMF, they are instead of complex structures. For example, the BitmapCoreHeader contains information about the dimensions and color format of a device-independent bitmap,<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.2.2.2. BitmapCoreHeader Object|page=85|access-date=2020-01-25}}</ref> which is itself part of a DeviceIndependentBitmap object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.2.2.9. DeviceIndependentBitmap Object|page=91|access-date=2020-01-25}}</ref> A graphics object, however, specifies parameters for graphics output and during playback of the WMF it sets up the playback device context.<ref name="graphicsobjects">{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.2.1. Graphics Objects|page=79|access-date=2020-01-25}}</ref> Graphics objects can be ''brushes'' (defines the style, color and pattern of a brush which defines how to paint an area of the graphic), ''fonts'' (defines properties that affect how text is displayed), ''palettes'' (specifies colors as device-independent values, defined by an application), ''pens'' (specifies the graphical attributes of a line), and ''regions'' (which specify line and curve segments that define a shape).<ref name="graphicsobjects"/> {| class="wikitable" |- valign="bottom" ! Name ! Description |- | META_CREATEBRUSHINDIRECT | Creates a brush object from a LogBrush (logical brush) object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.1 META_CREATEBRUSHINDIRECT Record|pages=131β132|access-date=2020-01-25}}</ref> |- | META_CREATEFONTINDIRECT | Creates a brush object from a font object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.2 META_CREATEFONTINDIRECT Record|pages=132|access-date=2020-01-25}}</ref> |- | META_CREATEPALETTE | Creates a palette object. |- | META_CREATEPATTERNBRUSH<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.4 META_CREATEPATTERNBRUSH Record|pages=133β135|access-date=2020-01-25}}</ref> | Creates a brush object from a LogBrush (logical brush) object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.3 META_CREATEPALETTE Record|pages=132β133|access-date=2020-01-25}}</ref> |- | META_CREATEPENINDIRECT | Creates a pen object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.5 META_CREATEPENINDIRECT Record|pages=134β135|access-date=2020-01-25}}</ref> |- | META_CREATEREGION | Creates a region object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.6 META_CREATEREGION Record|page=135|access-date=2020-01-25}}</ref> |- | META_DELETEOBJECT | Delete an object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.7 META_DELETEOBJECT Record|page=135|access-date=2020-01-25}}</ref> |- | META_CREATEBRUSHINDIRECT | Creates a brush object from a LogBrush (logical brush) object.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.8 META_CREATEBRUSHINDIRECT Record|pages=135β136|access-date=2020-01-25}}</ref> |- | META_DIBCREATEPATTERNBRUSH | Creates a brush object from a device-independent bitmap.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.9 META_DIBCREATEPATTERNBRUSH Record|pages=136β137|access-date=2020-01-25}}</ref> |- | META_SELECTCLIPREGION | Specifies the region object that will be the current [[Clipping (computer graphics)|clipping region]].<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.10 META_SELECTCLIPREGION Record|page=137|access-date=2020-01-25}}</ref> |- | META_SELECTOBJECT | Selects the object that will be the current object for the playback device context, which works on all graphics objects except palette objects, which must be set with META_SELECTPALETTE.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.11 META_SELECTOBJECT Record|pages=137β138|access-date=2020-01-25}}</ref> |- | META_SELECTPALETTE | Selects the logical palette for the playback device context.<ref>{{citation|url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-WMF/%5bMS-WMF%5d.pdf|title=<nowiki>[MS-WMF]:</nowiki> Windows Metafile Format Specification|section=2.3.4.11 META_SELECTPALETTE Record|page=139|access-date=2020-01-25}}</ref> |}
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)