IInkStrokeDisp::ScaleToRectangle method

Scales the IInkStrokeDisp object or InkStrokes collection to fit in the specified InkRectangle object.

Syntax


HRESULT ScaleToRectangle(
  [in] IInkRectangle *Rectangle
);

Parameters

Rectangle [in]

The InkRectangle in ink space to which the stroke or collection of strokes is scaled. The strokes are scaled and translated to match the strokes' bounding box to the rectangle.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

 

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

IInkStrokeDisp Interface
InkRectangle Class

 

 

Show: