Partager via


IInkTransform::ScaleTransform

4/8/2010

Applies the specified horizontal and vertical factors to the IInkTransform.

Syntax

HRESULT ScaleTransform(
  [in] float HorizontalMultiplier,
  [in] float VerticalMultiplier
);

Parameters

  • HorizontalMultiplier
    [in] The factor to scale the horizontal dimension in the transform.
  • VerticalMultiplier
    [in] The factor to scale the vertical dimension in the transform.

Property Value/Return Value

  • S_OK
    Success.
  • E_INK_EXCEPTION
    An exception occurred inside the method.

Remarks

Using this method would create a transform that scales the points in a stroke or strokes relative to the origin. Thus, if the HorizontalMultiplier parameter is 2.0, the stroke or strokes will be twice as wide, and will also be twice as far, horizontally, from the origin. To control the relative position of the strokes, use this method in conjunction with the IInkTransform::Translate method.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference