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.2.1.1150 (2.2.1.1150)

Syntax

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

Parameters

textString
String
Input string
font
MCvFont%
The font structure
textSize
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
Int32%
y-coordinate of the baseline relatively to the bottom-most text point

See Also