InkTransform class

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

InkTransform has these types of members:

Methods

The InkTransform class has these methods.

Method Description
GetTransform Retrieves the InkTransform as 6 floats.
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 Modifies the InkTransform using 6 floats.
Shear Applies a shear with the specified horizontal and vertical factors.
Translate Moves the transform by the specified horizontal and vertical components.

Properties

The InkTransform class has these properties.

Property Access type Description
Data
Read/write
Gets or sets the Automation version of the WIN32 XFORM struct.
eDx
Read/write
Gets or sets the real number that specifies the element in the third row, first column.
eDy
Read/write
Gets or sets the real number that specifies the element in the third row, second column.
eM11
Read/write
Gets or sets the real number that specifies the element in the first row, first column.
eM12
Read/write
Gets or sets the real number that specifies the element in the first row, second column.
eM21
Read/write
Gets or sets the real number that specifies the element in the second row, first column.
eM22
Read/write
Gets or sets the real number that specifies the element in the second row, second column.

Remarks

This object can be instantiated by calling the CoCreateInstance method in C++.

The object stores only six of the nine numbers in a 3x3 matrix because all 3x3 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.

Requirements

Requirement Value
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