MetafileHeader::IsWmfPlaceable method (gdiplusmetaheader.h)

The MetafileHeader::IsWmfPlaceable method determines whether the associated metafile is a placeable metafile.

Syntax

BOOL IsWmfPlaceable();

Return value

Type: BOOL

If the associated metafile is a placeable metafile, this method returns TRUE; otherwise, it returns FALSE.

Remarks

Placeable metafiles are .wmf files that contain a preheader preceding the metafile header. The preheader contains additional information for the metafile header of the metafile.

Examples

The following example creates a Metafile object from a .wmf file and gets the metafile header of the metafile. The code then determines whether the metafile is a placeable metafile.


MetafileHeader metaHeader;
Metafile::GetMetafileHeader(L"sampleMetafile.wmf", &metaHeader);

if(metaHeader.IsWmfPlaceable() == TRUE)
{
   // The associated metafile is a placeable metafile.
}
				

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusmetaheader.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

EmfType

Loading and Displaying Metafiles

MetafileHeader

Metafiles