Compartilhar via


IInkStrokes::Shear

4/8/2010

Adjusts the shear of the IInkTransform for each IInkStrokeDisp object in the IInkStrokes collection by the specified horizontal and vertical factors.

Syntax

HRESULT Shear (
  [in] float shearX,
  [in] float shearY
);

Parameters

  • shearX
    Specifies the horizontal factor of the shear.
  • shearY
    Specifies the vertical factor of the shear.

Return Value

HRESULT value Description

S_OK

Success.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

The transformation applied in this method is a pure shear only if one of the parameters is 0. Applied to a rectangle at the origin, when the shearY factor is 0, the transformation moves the bottom edge horizontally by shearX times the height of the rectangle. When the shearX factor is 0, it moves the right edge vertically by shearY times the width of the rectangle.

Note

When both parameters are nonzero, the results are difficult to predict. For example, if both factors are 1, the transformation squeezes the entire plane to a single line.

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