Path.ApplyTransform Method

Applies the specified linear transfromation to this path.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void ApplyTransform(
	Matrix matrix
)

Parameters

matrix

Type: System.Drawing.Drawing2D.Matrix

The matrix of the transformation.

Examples

C#
using (var reader = new JpegReader(@"Images\1.jpg"))
using (var path = Path.Create(reader.ClippingPaths[0], reader.Width, reader.Height))
{
    var m = new System.Drawing.Drawing2D.Matrix();
    m.Scale(0.5f, 0.5f);
    m.Rotate(30);
    path.ApplyTransform(m);
}

See Also

Reference

Manual