다음을 통해 공유


InkTransform Class (Automation Only)

InkTransform Class (Automation Only)

Represents a 3 × 3 matrix that, in turn, represents an affine transformation.

Members

Method Description
GetTransform Gets the InkTransform as 6 floats (Singles in Microsoft® Visual Basic® 6.0).
Reflect Reflects the transform in either the horizontal or vertical directions.
Reset Resets the transform to its original state.
Rotate Rotates the transform by an angle measured in degrees, and optionally specifies a center point for the rotation.
ScaleTransform Scales the transform by X and Y factors.
SetTransform Sets the InkTransform using 6 floats (Singles in Visual Basic 6.0).
Shear Applies a shear with the specified horizontal and vertical factors.
Translate Moves the transform by the specified horizontal and vertical components.
Property Description
eDx Gets or sets the real number that specifies the element in the third row, first column.
eDy Gets or sets the real number that specifies the element in the third row, second column.
eM11 Gets or sets the real number that specifies the element in the first row, first column.
eM12 Gets or sets the real number that specifies the element in the first row, second column.
eM21 Gets or sets the real number that specifies the element in the second row, first column.
eM22 Gets or sets the real number that specifies the element in the second row, second column.
Data Gets or sets the Automation version of the WIN32 XFORM struct.

Remarks

This object can be instantiated by calling the CoCreateInstance method in C++ or by using the New keyword in Visual Basic 6.0.

The object stores only six of the nine numbers in a 3 × 3 matrix because all 3 × 3 matrices that represent affine transformations have the same third column (0, 0, 1). This object in turn is used to describe transformation operations such as moving, shearing, scaling, or rotating in an InkRenderer object, IInkStrokeDisp object, or InkStrokes collection.

Note: The InkTransform object correlates to the XFORM structure Leave Site.

In Microsoft Visual Basic 6.0, the properties eDx, eDy, eM11, eM12, eM21, eM22, and Data are hidden, which means they do not appear in the Object Browser or in the IntelliSense menus. However, they can still be accessed by using these names.