This documentation is archived and is not being maintained.

Matrix Constructor (Rectangle, Point[])

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal rect As Rectangle, _
   ByVal plgpts() As Point _
public Matrix(
   Rectangle rect,
 Point[] plgpts
public: Matrix(
   Rectangle rect,
 Point plgpts[]
public function Matrix(
   rect : Rectangle,
 plgpts : Point[]


A Rectangle structure that represents the rectangle to be transformed.
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-left point of the parallelogram is implied by the first three.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Matrix Class | Matrix Members | System.Drawing.Drawing2D Namespace | Matrix Constructor Overload List