Freetype2GetTextSize Method |
http://www.emgu.com
Calculates the width and height of a text string.
Namespace:
Emgu.CV.Freetype
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic Size GetTextSize(
string text,
int fontHeight,
int thickness,
ref int baseLine
)
Public Function GetTextSize (
text As String,
fontHeight As Integer,
thickness As Integer,
ByRef baseLine As Integer
) As Size
public:
Size GetTextSize(
String^ text,
int fontHeight,
int thickness,
int% baseLine
)
member GetTextSize :
text : string *
fontHeight : int *
thickness : int *
baseLine : int byref -> Size
Parameters
- text
- Type: SystemString
Input text string. - fontHeight
- Type: SystemInt32
Drawing font size by pixel unit. - thickness
- Type: SystemInt32
Thickness of lines used to render the text. - baseLine
- Type: SystemInt32
y-coordinate of the baseline relative to the bottom-most text point.
Return Value
Type:
SizeThe approximate size of a box that contains the specified text
See Also