CODMetafileComponent::GetLogFrame

BOOLCODMetafileComponent::GetLogFrame(IODRuler*pIRuler, CRect&rcFrame)

Return the metafile frame in logical units.

Defined in: OdMetafileComp.cpp

Return Value

TRUE if successful; otherwise FALSE.

Parameters

pIRuler

Pointer to ruler for conversion from MM_HIMETRIC to logical units.

rcFrame

Returns rectangle that contains the bounds of the metafile in logical units.

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 the MM_HIMETRIC values into logical units defined by the given  IODRuler interface.