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

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

Syntax

C#
public Size GetTextSize(
	string text,
	int baseline
)
Visual Basic (Declaration)
Public Function GetTextSize ( _
	text As String, _
	baseline As Integer _
) As Size
Visual C++
public:
Size GetTextSize(
	String^ text, 
	int baseline
)

Parameters

text
Type: System..::.String
Input string
baseline
Type: System..::.Int32
y-coordinate of the baseline relatively to the bottom-most text point

Return Value

size of the text string. Height of the text does not include the height of character parts that are below the baseline

See Also