This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawString Method (String, Font, Pen, Brush, PointF, Single[])

Draws an outlined text at specified position.

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


Visual Basic
Public Sub DrawString ( _
	s As String, _
	font As Font, _
	pen As Pen, _
	brush As Brush, _
	point As PointF, _
	kernings As Single() _
public void DrawString(
	string s,
	Font font,
	Pen pen,
	Brush brush,
	PointF point,
	float[] kernings



Type: System.String

String to draw.

Type: Aurigma.GraphicsMill.Drawing.Font

Font object specifying text rendering options.

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object used to outline the text. If you need only fill the string, pass an empty pen here (you can get it with static method Empty of the Pen class).

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object used to fill the text. If you need only outline the string, pass an empty brush here (you can get it with static method Empty of the Brush class).

Type: System.Drawing.PointF

Text output point. Actual position of the text relatively this point is defined with HorizontalAlignment and VerticalAlignment properties of the font argument.

Type: System.Single []

Array of kerning modifiers. The first entry of this array specify additional distance (may be negative) between first and second character of the string; the second entry specifies additional distance between second and third character, etc.


All the coordinates are measured in units specified with Unit property.


If you draw text on indexed bitmaps, antialiasing is disabled regardless to the Antialiased property value. Also, if the GdiGraphics was created on the base of the Bitmap which has Format8bppGrayScale pixel format, antialiasing will not be applied for text output. The reason of this issue is that GDI does not support grayscale bitmaps. That's why Graphics Mill for .NET represents this image as Format8bppIndexed bitmap with grayscale palette.

See Also