Calculates the binding rectangle for the given text string when a specified font is used

Namespace:  Emgu.CV
Assembly:  Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)

Syntax

C#
public static void cvGetTextSize(
	string textString,
	ref MCvFont font,
	ref Size textSize,
	ref int baseline
)
Visual Basic (Declaration)
Public Shared Sub cvGetTextSize ( _
	textString As String, _
	ByRef font As MCvFont, _
	ByRef textSize As Size, _
	ByRef baseline As Integer _
)
Visual C++
public:
static void cvGetTextSize(
	String^ textString, 
	MCvFont% font, 
	Size% textSize, 
	int% baseline
)

Parameters

textString
Type: System..::.String
Input string
font
Type: Emgu.CV.Structure..::.MCvFont %
The font structure
textSize
Type: System.Drawing..::.Size %
Resultant size of the text string. Height of the text does not include the height of character parts that are below the baseline
baseline
Type: System..::.Int32 %
y-coordinate of the baseline relatively to the bottom-most text point

See Also