---
title: "Matrix..::.FillFromAffinePoints Method (array&lt;PointF&gt;[]()[], array&lt;PointF&gt;[]()[])"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_FillFromAffinePoints_2_a6854ac1.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Matrix.FillFromAffinePoints Method (PointF[], PointF[])
 
Initializes a [Matrix](https://www.graphicsmill.com/docs/gm5/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/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub FillFromAffinePoints ( _sourcePoints As PointF(), _destinationPoints As PointF() _
)
```
 
```csharp
public void FillFromAffinePoints(PointF[] sourcePoints,PointF[] destinationPoints
)
```
 
### Parameters
 
 - sourcePoints
     - Type:  [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e) []
An array of 3 source (input) points to transform from.

 - destinationPoints
     - Type:  [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e) []
An array of 3 destination (output) points to transform source points to.
 
## Remarks
 You can also create a matrix of the affine transform which converts one set of points to another one using a static method [FromAffinePoints(PointF\[\], PointF\[\])](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_FromAffinePoints_2_a6854ac1.htm.md).
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [FillFromAffinePoints Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Matrix_FillFromAffinePoints.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
