---
title: "Matrix.CreateFromAffinePoints Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateFromAffinePoints_2_a6854ac1.htm
product: "Graphics Mill"
---

# Matrix.CreateFromAffinePoints Method 
 
Returns a [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) of the affine transform which converts one set of points to another.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static Matrix CreateFromAffinePoints(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](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) of the transform which converts *sourcePoints* to *destinationPoints*.
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
