- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Brush Class
- BrushType Enumeration
- Charset Enumeration
- Font Class
- GdiGraphics Class
- GdiGraphics Members
- GdiGraphics Constructor
- GdiGraphics Methods
- {dtor} Method
- Clear Method
- Dispose Method
- DrawArc Method
- DrawBezier Method
- DrawBeziers Method
- DrawEllipse Method
- DrawFormattedText Method
- DrawImage Method
- DrawLine Method
- DrawLines Method
- DrawPie Method
- DrawPolygon Method
- DrawRectangle Method
- DrawString Method
- DrawString Method (String, Font, SolidBrush, Int32, Int32, Int32, Int32, TextTrimmingMode, Boolean, Boolean, Boolean)
- DrawString Method (String, Font, SolidBrush, Single, Single, Single, Single, TextTrimmingMode, Boolean, Boolean, Boolean)
- DrawString Method (String, Font, SolidBrush, Point)
- DrawString Method (String, Font, SolidBrush, PointF)
- DrawString Method (String, Font, Pen, Brush, Point)
- DrawString Method (String, Font, Pen, Brush, PointF)
- DrawString Method (String, Font, SolidBrush, Point, Int32[])
- DrawString Method (String, Font, SolidBrush, PointF, Single[])
- DrawString Method (String, Font, SolidBrush, Int32, Int32)
- DrawString Method (String, Font, SolidBrush, Single, Single)
- DrawString Method (String, Font, Pen, Brush, Point, Int32[])
- DrawString Method (String, Font, Pen, Brush, PointF, Single[])
- DrawString Method (String, Font, Pen, Brush, Int32, Int32)
- DrawString Method (String, Font, Pen, Brush, Single, Single)
- DrawString Method (String, Font, SolidBrush, Int32, Int32, Int32[])
- DrawString Method (String, Font, SolidBrush, Single, Single, Single[])
- DrawString Method (String, Font, Pen, Brush, Int32, Int32, Int32[])
- DrawString Method (String, Font, Pen, Brush, Single, Single, Single[])
- DrawString Method (String, Font, SolidBrush, Rectangle, TextTrimmingMode, Boolean, Boolean, Boolean)
- DrawString Method (String, Font, SolidBrush, RectangleF, TextTrimmingMode, Boolean, Boolean, Boolean)
- DrawText Method
- ExcludeClip Method
- FillEllipse Method
- FillPie Method
- FillPolygon Method
- FillRectangle Method
- FloodFill Method
- FromHdc Method
- FromHwnd Method
- GetHdc Method
- GetPixel Method
- IntersectClip Method
- Lock Method
- ResetClip Method
- SetClip Method
- SetPixel Method
- TranslateClip Method
- Unlock Method
- GdiGraphics Properties
- GdiGraphicsMode Enumeration
- HatchBrush Class
- HatchStyle Enumeration
- HorizontalAlignment Enumeration
- LineCap Enumeration
- Pen Class
- SolidBrush Class
- TextTrimmingMode Enumeration
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
GdiGraphics.DrawString Method (String, Font, Pen, Brush, Single, Single, Single[])
Draws an outlined text at specified position.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Public Sub DrawString ( _
s As String, _
font As Font, _
pen As Pen, _
brush As Brush, _
x As Single, _
y As Single, _
kernings As Single() _
)
public void DrawString(
string s,
Font font,
Pen pen,
Brush brush,
float x,
float y,
float[] kernings
)
Parameters
- s
-
Type: System.String
String to draw.
- font
-
Type: Aurigma.GraphicsMill.Drawing.Font
Font object specifying text rendering options.
- pen
-
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).
- brush
-
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).
- x
-
Type: System.Single
X-coordinate of the text output point. Actual position of the text relatively this point is defined with HorizontalAlignment and VerticalAlignment properties of the font argument.
- y
-
Type: System.Single
Y-coordinate of the text output point. Actual position of the text relatively this point is defined with HorizontalAlignment and VerticalAlignment properties of the font argument.
- kernings
-
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.
Remarks
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.