Click or drag to resize

CanvasDrawText Method (String, Point, Font, Fill)

Draw a single line text string onto this canvas specifying the upper left corner position.

Namespace:  Atalasoft.Imaging.Drawing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public Size DrawText(
	string text,
	Point position,
	Font font,
	Fill foreColor
)

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.

Return Value

Type: Size
The actual size of the text drawn.
Remarks
By default, text is drawn relative to the system DPI. To draw text relative to another DPI, such as the image DPI, see the ScaleToDpi property of TextFormat.
See Also