Click or drag to resize

Cv2GetFontScaleFromHeight Method

Calculates the font-specific size to use to achieve a given height in pixels.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static double GetFontScaleFromHeight(
	HersheyFonts fontFace,
	int pixelHeight,
	int thickness = 1
)

Parameters

fontFace
Type: OpenCvSharpHersheyFonts
Font to use, see cv::HersheyFonts.
pixelHeight
Type: SystemInt32
Pixel height to compute the fontScale for
thickness (Optional)
Type: SystemInt32
Thickness of lines used to render the text.See putText for details.

Return Value

Type: Double
The fontSize to use for cv::putText
See Also