Click or drag to resize

CanvasCalculateTextSize Method (String, Font)

Calculates the pixel size required to draw text using a specific font.

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 static Size CalculateTextSize(
	string text,
	Font font
)

Parameters

text
Type: SystemString
The text to draw.
font
Type: System.DrawingFont
The font used for the text.

Return Value

Type: Size
The size in pixel.
See Also