Welcome to our Support Center

Draw Text

Description

Draw text in an image. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8, I16, RGB and HSL.

Text Parameters : cluster

Text : string, text string to be drawn.
X : integer,
X coordinate of the text string in the image.
Y : integer,
Y coordinate of the text string in the image.
Font Face : enum,
font type.

      • FONT_HERSHEY_SIMPLEX : normal size sans-serif font
      • FONT_HERSHEY_PLAIN : small size sans-serif font
      • FONT_HERSHEY_DUPLEX : normal size sans-serif font (more complex than FONT_HERSHEY_SIMPLEX)
      • FONT_HERSHEY_COMPLEX : normal size serif font
      • FONT_HERSHEY_TRIPLEX : normal size serif font (more complex than FONT_HERSHEY_COMPLEX)
      • FONT_HERSHEY_COMPLEX_SMALL : smaller version of FONT_HERSHEY_COMPLEX
      • FONT_HERSHEY_SCRIPT_SIMPLEX : hand-writing style font
      • FONT_HERSHEY_SCRIPT_COMPLEX : more complex variant of FONT_HERSHEY_SCRIPT_SIMPLEX

Font Scale : float, font scale factor that is multiplied by the font-specific base size.
Text Color : integer,
color of the text.
BG Color : integer, background color of the text overlay.
Thickness : integer, thickness of the lines used to draw a text.

Output parameters

 

Image Dst : class

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents