http://www.emgu.com
Renders the text in the image with the specified font and color. The printed text is clipped by ROI rectangle. Symbols that do not belong to the specified font are replaced with the rectangle symbol.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void PutText(
IInputOutputArray img,
string text,
Point org,
FontFace fontFace,
double fontScale,
MCvScalar color,
int thickness = 1,
LineType lineType = LineType.EightConnected,
bool bottomLeftOrigin = false
)
Public Shared Sub PutText (
img As IInputOutputArray,
text As String,
org As Point,
fontFace As FontFace,
fontScale As Double,
color As MCvScalar,
Optional thickness As Integer = 1,
Optional lineType As LineType = LineType.EightConnected,
Optional bottomLeftOrigin As Boolean = false
)
public:
static void PutText(
IInputOutputArray^ img,
String^ text,
Point org,
FontFace fontFace,
double fontScale,
MCvScalar color,
int thickness = 1,
LineType lineType = LineType::EightConnected,
bool bottomLeftOrigin = false
)
static member PutText :
img : IInputOutputArray *
text : string *
org : Point *
fontFace : FontFace *
fontScale : float *
color : MCvScalar *
?thickness : int *
?lineType : LineType *
?bottomLeftOrigin : bool
(* Defaults:
let _thickness = defaultArg thickness 1
let _lineType = defaultArg lineType LineType.EightConnected
let _bottomLeftOrigin = defaultArg bottomLeftOrigin false
*)
-> unit
Parameters
- img
- Type: Emgu.CVIInputOutputArray
Input image - text
- Type: SystemString
String to print - org
- Type: System.DrawingPoint
Coordinates of the bottom-left corner of the first letter - fontFace
- Type: Emgu.CV.CvEnumFontFace
Font type. - fontScale
- Type: SystemDouble
Font scale factor that is multiplied by the font-specific base size. - color
- Type: Emgu.CV.StructureMCvScalar
Text color - thickness (Optional)
- Type: SystemInt32
Thickness of the lines used to draw a text. - lineType (Optional)
- Type: Emgu.CV.CvEnumLineType
Line type - bottomLeftOrigin (Optional)
- Type: SystemBoolean
When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner.
See Also