Matrix constructor
Contents
[
Hide
]init
Initializes a new instance of the Matrix class as the identity matrix.
def __init__(self):
...
init
Initializes a new instance of the Matrix
class to the geometric transform defined by the specified rectangle and array of points.
def __init__(self, rect, plgpts):
...
Parameter | Type | Description |
---|---|---|
rect | RectangleF | A RectangleF structure that represents the rectangle to be transformed. |
plgpts | list | An array of three PointF structures that represents the points of a parallelogram to which the upper-left, upper-right, and lower-left corners of the rectangle is to be transformed. The lower-right corner of the parallelogram is implied by the first three corners. |
init
Initializes a new instance of the Matrix
class to the geometric transform defined by the specified rectangle and array of points.
def __init__(self, rect, plgpts):
...
Parameter | Type | Description |
---|---|---|
rect | Rectangle | A Rectangle structure that represents the rectangle to be transformed. |
plgpts | list | An array of three Point structures that represents the points of a parallelogram to which the upper-left, upper-right, and lower-left corners of the rectangle is to be transformed. The lower-right corner of the parallelogram is implied by the first three corners. |
init
Initializes a new instance of the Matrix
class.
def __init__(self, m11, m12, m21, m22, m31, m32):
...
Parameter | Type | Description |
---|---|---|
m11 | float | m00 M11 Scale X |
m12 | float | m10 M12 Shear Y |
m21 | float | m01 M21 Shear X |
m22 | float | m11 M22 Scale Y |
m31 | float | m02 M31 Translate X |
m32 | float | m12 M32 Translate Y |
See Also
- module
aspose.cad
- class
Matrix
- class
Point
- class
PointF
- class
Rectangle
- class
RectangleF