eM22 Property (Automation Only)
eM22 Property (Automation Only) |
Returns or sets the element in the second row, second column of the affine transform matrix that is represented by an InkTransform object.
Declaration
[C++]
[propput] HRESULT put_eM22 ([in] float eM22);
[propget] HRESULT get_eM22 ([out, retval] float* eM22);
[Microsoft® Visual Basic® 6.0]
Public Property Get eM22() As Single
Public Property Let eM22(ByVal theUnit As Single)
Property Value
float Returns or sets the element in the second row, second column of the affine transform matrix that is represented by an InkTransform object.
This property is read/write.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
E_POINTER | The parameter pointer was invalid. |
E_INK_EXCEPTION | An exception occurred inside the method. |
Remarks
In Microsoft Visual Basic 6.0, this property is hidden, which means it does not appear in the Object Browser or in the IntelliSense menus. However, it can still be accessed by using the eM22 name.
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example sets the values of the eM11, eM12, eM21, eM22, eDx, and eDy properties. The new values for the eM11, eM12, eM21, and eM22 properties would correspond to a 90-degree counter-clockwise linear transformation. The new value for the eDx property would correspond to a translation of 4 units in the x direction, and the new value for the eDy property would correspond to a translation of 5 units in the y direction.
Dim theInkTransform As New InkTransform
theInkTransform.eM11 = 0! 'eM11 default value is 1
theInkTransform.eM12 = 1! 'eM12 default value is 0
theInkTransform.eM21 = -1! 'eM21 default value is 0
theInkTransform.eM22 = 0! 'eM22 default value is 1
theInkTransform.eDx = 4! 'eDx default value is 0
theInkTransform.eDy = 5! 'eDy default value is 0