Gets or sets a transformation matrix for this Text.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public Matrix Transform { get; set; }
using (var bitmap = new Bitmap(150, 150, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) using (var m = new System.Drawing.Drawing2D.Matrix()) { m.Rotate(30); var plainText = new PlainText("Plain Text", graphics.CreateFont("Arial", 28), new System.Drawing.PointF(40, 40)); plainText.Transform = m; graphics.DrawText(plainText); bitmap.Save(@"Images\Output\out.png"); }