http://www.emgu.com
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.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void cvGetTextSize(
	string textString,
	ref MCvFont font,
	ref Size textSize,
	ref int baseline
)
Visual Basic
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
)
F#
static member cvGetTextSize : 
        textString : string * 
        font : MCvFont byref * 
        textSize : Size byref * 
        baseline : int byref -> unit 

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