CvGetTextSize Method OpenCvSharp Class Library
Retrieves width and height of text string

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void GetTextSize(
	string textString,
	CvFont font,
	out CvSize textSize,
	out int baseline
)

Parameters

textString
Type: SystemString
Input string.
font
Type: OpenCvSharpCvFont
Reference to the font structure.
textSize
Type: OpenCvSharpCvSize
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: SystemInt32
y-coordinate of the baseline relatively to the bottom-most text point.
See Also

Reference