CODMetafileComponent::GetFrameSize

BOOLCODMetafileComponent::GetFrameSize(CODMeasure&width, CODMeasure&height)

Return the width and height of the metafile frame.

Defined in: OdMetafileComp.cpp

Return Value

TRUE if successful; otherwise FALSE.

Parameters

width

Return value for width.

height

Return value for height.

Comments

This function gets the original bounds of the metafile from the ENHMETAHEADER structure using the  GetHeaderInfo method. The ENHMETAHEADER stores the frame size in HIMETRIC units, where each logical unit is 0.01 millimeters. This function converts those units into the units used by the given  CODMeasure objects.