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.2.0.1010 (2.2.0.1010)

Syntax

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

Parameters

text
String
Input string
baseline
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