This documentation is for the old version. Go to the latest Graphics Mill docs

Matrix.FromProjectivePoints Method (PointF[], PointF[])

Returns a Matrix of the projective transform which converts one set of points to another.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function FromProjectivePoints ( _
	sourcePoints As PointF(), _
	destinationPoints As PointF() _
) As Matrix
C#
public static Matrix FromProjectivePoints(
	PointF[] sourcePoints,
	PointF[] destinationPoints
)

Parameters

sourcePoints

Type: System.Drawing.PointF []

An array of 4 source (input) points to transform from.
destinationPoints

Type: System.Drawing.PointF []

An array of 4 destination (output) points to transform source points to.

Return Value

A Matrix class instance which represents the matrix of the transform which converts sourcePoints to destinationPoints.

Remarks

If you already have an instance of the Matrix class, you can use FillFromProjectivePoints(PointF[], PointF[]) method (non-static version of this method).

See Also

Reference