CODComponent::Scale

Scale the component.

Defined in: OdComponent.cpp

Syntax

void CODComponent::Scale(float fScaleX, float fScaleY, float fOriginX, float fOriginY)

void CODComponent::Scale(const CSize& szBounds, const OD_CONTROL_POINT nControlPoint)

Return Value

void

Parameters

fScaleX

The horizontal scaling factor.

fScaleY

The vertical scaling factor.

fOriginX

X-origin for scaling operation.

fOriginY

Y-origin for scaling operation.

szBounds

Desired width and height.

nControlPoint

Control point about which to scale the component.

Comments

This function applies a scaling transformation to the component. There are two overloaded versions of this function. One version takes a horizontal and vertical scaling factor and a point about which to scale the component. The other version just takes a size and scales the component about its center to the specified size.

See Also

OnMove is called.