CanvasDrawText Method (String, Point, Font, Fill, SolidFill) |
Draw a single line text string onto this canvas specifying the upper left corner position and a solid
background color.
Namespace:
Atalasoft.Imaging.Drawing
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public Size DrawText(
string text,
Point position,
Font font,
Fill foreColor,
SolidFill backColor
)
Public Function DrawText (
text As String,
position As Point,
font As Font,
foreColor As Fill,
backColor As SolidFill
) As Size
Parameters
- text
- Type: SystemString
The text string to draw. - position
- Type: System.DrawingPoint
The position of the upper left corner of the text rectangle to draw. - font
- Type: System.DrawingFont
The text font. - foreColor
- Type: Atalasoft.Imaging.DrawingFill
The text fill. - backColor
- Type: Atalasoft.Imaging.DrawingSolidFill
The background color.
Return Value
Type:
SizeSee Also