Microsoft DirectX 8.1 (C++)

CDrawImage::ScaleSourceRect

The ScaleSourceRect method retrieves a scaled version of a provided source rectangle.

Syntax

virtual RECT ScaleSourceRect(
    const RECT *pSource
);

Parameters

pSource

Pointer to an unscaled source rectangle.

Return Value

Returns the scaled source rectangle (returns unscaled pSource by default).

Remarks

The base class implementation does not scale the source rectangle. Derived classes can override this to implement scaling, if required.

See Also