四角形にテキスト描画
- 更新日2025-07-30
- 8分で読める
ピクチャ内に文字列を書き入れます。
指定する四角形よりも文字列が大きい場合、この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. また、この出力を「ピクチャからピックスマップに変換」VIへ配線して、画像データクラスタを取得できます。次に、グラフィック形式VIを使用して、この画像データをファイルに保存できます。この出力を「文字列連結」関数に配線して、複数のピクチャ関数VIの出力を連結して、単一のピクチャ制御器に描画できます。 |
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
picture
—
rect
—
text color(black)
—
new picture
—