在矩形中绘制文本
- 更新时间2025-07-30
- 阅读时长7分钟
在图片中绘制字符串。
如字符串大于指定的矩形,VI将对字符串进行剪裁。

输入/输出
[user-specified font]
—
[user-specified font] specifies the specific font characteristics for the text to draw. 如所需字体不是用户定义字体,VI可忽略该输入。
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. VI可依据矩形剪裁文本。水平坐标向右递增,垂直坐标向下递增。
text
—
text is the string to draw in the picture.
text color(black)
—
文本颜色表示文本的颜色。默认值为黑色。 可连线颜色盒常量至该输入端。
BG color(transparent)
—
BG color is the color of the background of the text. 默认值为透明。 可连线颜色盒常量至该输入端。
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. |
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
picture
—
rect
—
text color(black)
—
new picture
—