CODMetafileComponent::Create
Creates the metafile component.
Defined in: OdMetafileComp.cpp
Syntax
BOOL CODMetafileComponent::Create()
BOOL CODMetafileComponent::Create(const CRect& rect)
Return Value
TRUE if successful; otherwise FALSE.
Parameters
rect
Bounding rectangle in logical units.
Comments
This function allocates four local points for the metafile component
and sets those points to the given rectangle using
SetLocalBounds. If no bounding rectangle is
specified, then the bounds are set to the default value of (0,0),(100,100).
Calling
SizeToFrame after the metafile is loaded
will set a scaling transform that scales the local points to world points
that match the original size of the metafile. Another way to adjust the bounds
to match the original size of the metafile is to call
GetLogFrame and pass the resulting rectangle to
SetLocalBounds.