http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Calculates the binding rectangle for the given text string when a specified font is used
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
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 ) |
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