CODMetafileComponent::SizeToFrame

BOOL CODMetafileComponent::SizeToFrame(IODRuler* pIRuler)

Adjust logical size of component to match frame size stored in original metafile.

Defined in: OdMetafileComp.cpp

Return Value

TRUE if successful; otherwise FALSE.

Parameters

pIRuler

Pointer to ruler for conversion from MM_HIMETRIC to logical units.

Comments

This function applies a scaling transformation to the component so that its size matches the size specified in the metafile header. This function calls GetFrameSize and to get the size of the metafile in millimeters. Then it uses the ruler object to convert millimeters to logical units using CODRuler::MeasureToLog. The component is then scaled to match the logical size calculated. This function does not change the local points stored for the component.