Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
55
Image
Add Text
This tool adds a text strip to an image bank. The text itself as well as the background strip
can be drawn in the color or gray scale value of your choice.
The text can consist of a text string, a number or both. If the
String type
parameter is set
to
Text
, the text string can of course hold numbers, but they will be static. If
String type
is
set to
Text and variable
or
Variable
, variable values can be part of the text strip.
When double clicking the values of
String color
or
Background color
parameters, the
respective colors can be specified as numbers or chosen from an interactive menu. Possi-
ble inputs are numbers between 0 and 255, where 0 through 243 are gray scale values
and 244 through 255 are various colors.
Input Parameters
01 = X coordinate
The x-coordinate of the upper left corner of the text strip.
02 = Y coordinate
The y-coordinate of the upper left corner of the text strip.
03 = String type
This parameter specifies whether the text strip is a static
text, a variable value or a combination. For the latter case,
the variable value will follow the static string with a space
in between.
04 = Text
This parameter specifies the static text.
05 = Variable
This parameter specifies the variable value. Note that the
value can be given as a constant value, evaluated by an
expression, a table value or be an argument or result from
a previous step.
06 = String color
The gray scale value or color code that specifies the color
of the text. Allowed values are 0 through 255.
07 = Background color
The gray scale value or color code that specifies the color
of the strip behind the text. The value 254 is transparent.
08 = Size
This parameter specifies the size of the font where 1 is the
smallest and 8 is the largest font available.
09 = Destination bank
The image bank in which to overlay the text.
Returned Values
01 = String length
Number of letters in the text strip. Note that the space
between the string and the number is included in the count
if
String type
is set to
Text and variable
.
02 = Character width
The number of pixels each letter is wide.
03 = Character height
The text strip height in pixels.