在绘制点插入文本
- 更新时间2025-07-30
- 阅读时长9分钟
在图片中绘制字符串。
该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.
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)
—
文本颜色表示文本的颜色。默认值为黑色。 可连线颜色盒常量至该输入端。
BG color(transparent)
—
BG color is the color of the background of the text. 默认值为透明。 可连线颜色盒常量至该输入端。
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.
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
—