Metafile class

Applies to: desktop apps only

The Metafile class defines a graphic metafile. A metafile contains records that describe a sequence of graphics API calls. Metafiles can be recorded (constructed) and played back (displayed).

Members

The Metafile class inherits from Image. Metafile also has these types of members:

Constructors

The Metafile class has these constructors.

ConstructorDescription
Metafile::Metafile(HDC,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

Metafile::Metafile(HDC,Rect&,MetafileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

Metafile::Metafile(HDC,RectF&,MetaFileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

Metafile::Metafile(HENHMETAFILE,BOOL)

Creates a GDI+ Metafile::Metafile object for playback based on a GDI Enhanced Metafile (EMF) file.

Metafile::Metafile(HMETAFILE,WmfPlaceableFileHeader*,BOOL)

Creates a GDI+Metafile::Metafile object for recording. The format will be placeable metafile.

Metafile::Metafile(IStream*)

Creates a Metafile::Metafile object from an IStream interface for playback.

Metafile::Metafile(IStream*,HDC,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording to an IStream interface.

Metafile::Metafile(IStream*,HDC,Rect&,MetafileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording to an IStream interface.

Metafile::Metafile(IStream*,HDC,RectF&,MetafileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording to an IStream interface.

Metafile::Metafile(WCHAR*)

Creates a Metafile::Metafile object for playback.

Metafile::Metafile(WCHAR*,HDC,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

Metafile::Metafile(WCHAR*,HDC,Rect&,MetaFileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

Metafile::Metafile(WCHAR*,HDC,RectF&,MetafileFrameUnit,EmfType,WCHAR*)

Creates a Metafile::Metafile object for recording.

 

Methods

The Metafile class has these methods.

MethodDescription
Metafile::ConvertToEmfPlus

The Metafile::ConvertToEmfPlus method converts this Metafile object to the EMF+ format.

Metafile::ConvertToEmfPlus

The Metafile::ConvertToEmfPlus method converts this Metafile object to the EMF+ format.

Metafile::ConvertToEmfPlus

The Metafile::ConvertToEmfPlus method converts this Metafile object to the EMF+ format.

Metafile::EmfToWmfBits

Converts an enhanced-format metafile to a WMF metafile and stores the converted records in a specified buffer.

Metafile::GetDownLevelRasterizationLimit

Gets the rasterization limit currently set for this metafile. The rasterization limit is the resolution used for certain brush bitmaps that are stored in the metafile. For a detailed explanation of the rasterization limit, see Metafile::SetDownLevelRasterizationLimit.

Metafile::GetHENHMETAFILE

The Metafile::GetHENHMETAFILE method gets a Windows handle to an Enhanced Metafile (EMF) file.

Metafile::GetMetafileHeader(HENHMETAFILE*,MetafileHeader*)

The Metafile::GetMetafileHeader method gets the header.

Metafile::GetMetafileHeader(HMETAFILE,WmfPlaceableFileHeader*,MetafileHeader*)

The Metafile::GetMetafileHeader method gets the metafile header of this metafile.

Metafile::GetMetafileHeader(IStream*,MetafileHeader*)

The Metafile::GetMetafileHeader method gets the header.

Metafile::GetMetafileHeader(MetafileHeader*)

The Metafile::GetMetafileHeader method gets the header.

Metafile::GetMetafileHeader(WCHAR*,MetafileHeader*)

The Metafile::GetMetafileHeader method gets the header.

Metafile::PlayRecord

The Metafile::PlayRecord method plays a metafile record.

Metafile::SetDownLevelRasterizationLimit

Sets the resolution for certain brush bitmaps that are stored in this metafile.

 

Remarks

Some Metafile constructors (those that receive a device context handle) create Metafile objects that are used to record metafiles. Other Metafile constructors (those that do not receive a device context handle) create Metafile objects that are used to display (play back) metafiles.

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Show: