Text in Rechteck zeichnen
- Aktualisiert2025-07-30
- 4 Minute(n) Lesezeit
Zeichnet einen String in ein Bild.
Wenn der String größer sein sollte als das vordefinierte Rechteck, wird der String durch das VI auf passende Größe gestutzt.

Ein-/Ausgänge
[user-specified font]
—
[user-specified font] specifies the specific font characteristics for the text to draw. Ist Gewünschte Schriftart nicht Benutzerdefinierte Schriftart, wird der Eingang ignoriert.
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.
text orientation
—
text orientation sets the orientation of the text to draw.
rect
—
rect contains the upper-left and lower-right coordinates that describe a rectangle bounding the text. Der Text wird dann auf die Koordinaten des Rechtecks zugeschnitten. (Der Koordinatenursprung befindet sich in der linken unteren Ecke.)
text
—
text is the string to draw in the picture.
text color(black)
—
Textfarbe ist die Farbe des Textes. Die Standardeinstellung ist Schwarz. Mit diesem Eingang kann auch eine Farbfeldkonstante verbunden werden.
BG color(transparent)
—
BG color is the color of the background of the text. Die Standardeinstellung lautet "Transparent". Mit diesem Eingang kann auch eine Farbfeldkonstante verbunden werden.
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. Der Ausgang kann aber auch mit dem Eingang des VIs Bild nach Pixmap verbunden werden. Auf diese Weise lässt sich ein Bilddaten-Cluster erzeugen. Sie können die Grafikdaten mit den VIs für Grafikformate in eine Datei speichern. Sie können diesen Ausgang mit der Funktion Strings verknüpfen verbinden, um die Ausgänge von mehreren VIs der Bildfunktionen so zu verbinden, dass diese auf einem einzelnen Bildanzeigeelement dargestellt werden. |
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
picture
—
rect
—
text color(black)
—
new picture
—