Tracer du texte au point
- Mise à jour2025-07-30
- Temps de lecture : 6 minute(s)
Trace une chaîne sur une image.
Ce VI calcule automatiquement le rectangle délimitant le texte et positionne le texte par rapport à un point que vous avez spécifié.

Entrées/Sorties
[user-specified font]
—
[user-specified font] specifies the specific font characteristics for the text to draw. Le VI ignore cette entrée sauf si la police désirée est la police utilisateur.
desired font(Application)
—
desired font specifies the text font.
picture
—
picture is the picture to which you want to add the text string. The default is an empty picture.
origin
—
origin is the coordinate of the starting point of the text.
alignment(left, top)
—
alignment specifies the location of the text relative to the origin you specify.
text
—
text is the string to draw in the picture.
text color(black)
—
couleur du texte désigne la couleur du texte. La couleur par défaut est le noir. Vous pouvez câbler une constante boîte de couleur à cette entrée.
BG color(transparent)
—
BG color is the color of the background of the text. La couleur par défaut est transparente. Vous pouvez câbler une constante boîte de couleur à cette entrée.
text orientation
—
text orientation sets the orientation of the text to draw.
new picture
—
new picture is the picture that contains the new image. You can wire this output to any other picture input to add more drawing instructions to the picture. Vous pouvez aussi câbler cette sortie au VI Image en table de pixels pour obtenir un cluster données image. Vous pouvez alors enregistrer les données image dans un fichier en utilisant les VIs Formats graphiques. Vous pouvez câbler cette sortie à la fonction Concaténer des chaînes pour concaténer la sortie de plusieurs VIs Fonctions sur les images pour permettre un traçage sur une commande image unique.
text rect
—
text rect is a cluster that contains coordinates that describe the left, top, right, and bottom coordinates of the outer edges of the rectangle.
|
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
picture
—
origin
—
text color(black)
—
new picture
—
text rect
—
left
—