OpenCvSharp.Cv2.GetTextSize C# (CSharp) Method

GetTextSize() public static method

returns bounding box of the text string
public static GetTextSize ( string text, HersheyFonts fontFace, double fontScale, int thickness, int &baseLine ) : Size
text string
fontFace HersheyFonts
fontScale double
thickness int
baseLine int
return Size
        public static Size GetTextSize(string text, HersheyFonts fontFace,
            double fontScale, int thickness, out int baseLine)
        {
            if (String.IsNullOrEmpty(text))
                throw new ArgumentNullException(text);
            return NativeMethods.core_getTextSize(text, (int)fontFace, fontScale, thickness, out baseLine);
        }
Cv2