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

# Matrix.FromProjectivePoints Method (PointF, PointF, PointF, PointF, PointF, PointF, 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 ( _
sourcePoint0 As PointF, _
sourcePoint1 As PointF, _
sourcePoint2 As PointF, _
sourcePoint3 As PointF, _
destinationPoint0 As PointF, _
destinationPoint1 As PointF, _
destinationPoint2 As PointF, _
destinationPoint3 As PointF _
) As Matrix```
C#
```public static Matrix FromProjectivePoints(
PointF sourcePoint0,
PointF sourcePoint1,
PointF sourcePoint2,
PointF sourcePoint3,
PointF destinationPoint0,
PointF destinationPoint1,
PointF destinationPoint2,
PointF destinationPoint3
)```

### Parameters

sourcePoint0
The first input source (input) point to transform from.
sourcePoint1
The second input source (input) point to transform from.
sourcePoint2
The third input source (input) point to transform from.
sourcePoint3
The fourth input source (input) point to transform from.
destinationPoint0
The first input destination (output) point to transform to. It corresponds to the sourcePoint0 point.
destinationPoint1
The second input destination (output) point to transform to. It corresponds to the sourcePoint1 point.
destinationPoint2
The third input destination (output) point to transform to. It corresponds to the sourcePoint2 point.
destinationPoint3
The fourth input destination (output) point to transform to. It corresponds to the sourcePoint3 point.

### Return Value

A Matrix class instance which represents the matrix of the transform which converts source points to destination points.

## Remarks

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