Matrix Constructor (Rectangle, Point[])

 

Initializes a new instance of the Matrix class to the geometric transform defined by the specified rectangle and array of points.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public Matrix(
	Rectangle rect,
	Point[] plgpts
)

Parameters

rect
Type: System.Drawing.Rectangle

A Rectangle structure that represents the rectangle to be transformed.

plgpts
Type: System.Drawing.Point[]

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.

This method initializes the new Matrix such that it represents the geometric transform that maps the rectangle specified by the rect parameter to the parallelogram defined by the three points in the plgpts parameter. The upper-left corner of the rectangle is mapped to the first point in the plgpts array, the upper-right corner is mapped to the second point, and the lower-left corner is mapped to the third point. The lower-right point of the parallelogram is implied by the first three.

.NET Framework
Available since 1.1
Return to top
Show: