Graphics.DrawText Method

Draws a text.

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

Syntax

C#
public void DrawText(
	Text text
)

Parameters

text

Type: Aurigma.GraphicsMill.AdvancedDrawing.Text

A Text to draw.

Remarks

This method allows to draw any type of text available in Graphics Mill: plain, bounded, distorted, text on paths, and different types of art text.

Examples

C#
using (var bitmap = new Bitmap(200, 80, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetAdvancedGraphics())
{
    var plainText = new PlainText("Plain Text", graphics.CreateFont("Arial", 28), new System.Drawing.PointF(20, 40));
    graphics.DrawText(plainText);
    bitmap.Save(@"Images\Output\out.png");
}

See Also

Reference

Manual