Click or drag to resize

Freetype2GetTextSize Method

http://www.emgu.com
Calculates the width and height of a text string.

Namespace:  Emgu.CV.Freetype
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntax
public Size GetTextSize(
	string text,
	int fontHeight,
	int thickness,
	ref int baseLine
)

Parameters

text
Type: SystemString
Input text string.
fontHeight
Type: SystemInt32
Drawing font size by pixel unit.
thickness
Type: SystemInt32
Thickness of lines used to render the text.
baseLine
Type: SystemInt32
y-coordinate of the baseline relative to the bottom-most text point.

Return Value

Type: Size
The approximate size of a box that contains the specified text
See Also