BridgeText Constructor (String, Font, Brush, PointF)

Creates the BridgeText object at the specified location with the specified Font and SolidBrush settings.

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

Syntax

C#
public BridgeText(
	string text,
	Font font,
	Brush color,
	PointF center
)

Parameters

text

Type: System.String

A string to draw.
font

Type: Aurigma.GraphicsMill.AdvancedDrawing.Font

Font defining the font characteristics of the text.
color

Type: Aurigma.GraphicsMill.AdvancedDrawing.Brush

SolidBrush determining the color of the drawn text.
center

Type: System.Drawing.PointF

Point specifying the center of the bridge text.

Examples

C#
using (var bitmap = new Bitmap(200, 100, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetAdvancedGraphics())
{
    var artText = new BridgeText("Art Text", graphics.CreateFont("Arial", 28), new SolidBrush(RgbColor.Black), new System.Drawing.PointF(70, 50), 0.5f);
    graphics.DrawText(artText);
    bitmap.Save(@"Images\Output\out.png");
}

See Also

Reference

Manual