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

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

Returns a Matrix of the affine 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 FromAffinePoints ( _
	sourcePoints As PointF(), _
	destinationPoints As PointF() _
) As Matrix
C#
public static Matrix FromAffinePoints(
	PointF[] sourcePoints,
	PointF[] destinationPoints
)

Parameters

sourcePoints

Type: System.Drawing.PointF []

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

Type: System.Drawing.PointF []

An array of 3 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 FillFromAffinePoints(PointF[], PointF[]) method (non-static version of this method).

See Also

Reference