Initializes a new instance of the PathText class with the specified settings.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Type: System.String
A string to draw.Type: Aurigma.GraphicsMill.AdvancedDrawing.Brush
SolidBrush determining the color of the drawn text.Type: Aurigma.GraphicsMill.AdvancedDrawing.Path
Path specifying the curve along which the the text locates.using (var bitmap = new Bitmap(200, 80, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetAdvancedGraphics())
using (var path = new Path())
{
path.MoveTo(10, 60);
path.CurveTo(85, 20, 175, 60);
var distortedText = new PathText("Distorted Text", graphics.CreateFont("Arial", 28), new SolidBrush(RgbColor.Black), path);
graphics.DrawText(distortedText);
bitmap.Save(@"Images\Output\out.png");
}