---
title: "Graphics.Transform Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Graphics_Transform.htm
product: "Graphics Mill"
---

# Graphics.Transform Property 
 
Gets or sets a transformation matrix for this [Graphics](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public Matrix Transform { get; set; }
```
 
### Property Value
The transformation matrix for this [Graphics](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md).
 
## Remarks
  
If the matrix defines some transformation, then all objects that are drawn on the [Graphics](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md) after the transformation is set will undergo this transformation. By default no transformation is set.
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(640, 480, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetGraphics())
{

    graphics.DrawEllipse(new Pen(RgbColor.Red, 2f), 0, 0, bitmap.Width / 2, bitmap.Height / 4);

    // Translate coordinates and rotate
    var matrix = new System.Drawing.Drawing2D.Matrix();
    matrix.Translate(bitmap.Width / 3, bitmap.Height / 3);
    matrix.Rotate(30);
    graphics.Transform = matrix;

    graphics.DrawEllipse(new Pen(RgbColor.Green, 2f), 0, 0, bitmap.Width / 2, bitmap.Height / 4);

    bitmap.Save(@"Images\Output\graphicsTransform.jpg");
}
```
   
## See Also

### Reference

- [Graphics Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Affine and Projective Transformations](https://www.graphicsmill.com/docs/gm/affine-and-projective-transformations.htm.md)
