Matrix constructor

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):
    ...
ParameterTypeDescription
rectRectangleFA RectangleF structure that represents the rectangle to be transformed.
plgptslistAn 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):
    ...
ParameterTypeDescription
rectRectangleA Rectangle structure that represents the rectangle to be transformed.
plgptslistAn 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):
    ...
ParameterTypeDescription
m11floatm00 M11 Scale X
m12floatm10 M12 Shear Y
m21floatm01 M21 Shear X
m22floatm11 M22 Scale Y
m31floatm02 M31 Translate X
m32floatm12 M32 Translate Y

See Also