GetTransform Method (Automation Only)
GetTransform Method (Automation Only) |
Gets the InkTransform member data.
Declaration
[C++]
HRESULT GetTransform(
[out] float *eM11,
[out] float *eM12,
[out] float *eM21,
[out] float *eM22,
[out] float *eDx,
[out] float *eDy
);
[Microsoft® Visual Basic® 6.0]
Public Sub GetTransform( _
eM11 As Single, _
eM12 As Single, _
eM21 As Single, _
eM22 As Single, _
eDx As Single, _
eDy As Single _
)
Parameters
eM11
[out] Gets the real number that specifies the element in the first row, first column.
eM12
[out] Gets the real number that specifies the element in the first row, second column.
eM21
[out] Gets the real number that specifies the element in the second row, first column.
eM22
[out] Gets the real number that specifies the element in the second row, second column.
eDx
[out] Gets the real number that specifies the element in the third row, first column.
eDy
[out] Gets the real number that specifies the element in the third row, second column.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
E_INK_EXCEPTION | An exception occurred inside the method. |
E_POINTER | A parameter contained an invalid pointer. |
Remarks
An InkTransform object represents a 33 matrix that, in turn, represents an affine transformation. 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).
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example gets the property values from an InkTransform object, theInkTransform.
Dim theM11 As Single
Dim theM12 As Single
Dim theM21 As Single
Dim theM22 As Single
Dim theDx As Single
Dim theDy As Single
theInkTransform.GetTransform theM11, theM12, theM21, theM22, theDx, theDy