dev_set_colored
— Set multiple output colors.
dev_set_colored( : : NumColors : )
dev_set_colored
allows to display tuples of regions, XLDs, and other
geometrical objects in the graphics windows in different colors using a set
of NumColors
predefined colors.
Valid values for NumColors
can be queried with the operator
query_colored
.
For more information see the description of the operator set_colored
.
However, in contrast to that operator the color setting is also used for
all new graphics windows that are opened afterwards.
These color settings remain valid until dev_set_color
or
dev_set_colored
is called or until the color setting are modified
interactively.
Using the code export feature of HDevelop, the code that is generated
for this operator may have a different behavior than the related
HALCON operator.
For a detailed description of the code export of HDevelop graphics
operators into the different programming languages see in the
“HDevelop User's Guide”
the chapter Code Export
-> General Aspects of Code Generation
-> Graphics Windows
.
NumColors
(input_control) integer →
(integer)
Number of output colors.
Default value: 6
List of values: 3, 6, 12
read_image(Image,'monkey') threshold(Image,Region,128,255) dev_set_colored(6) connection(Region,Regions)
If the values of the specified parameters are correct,
dev_set_colored
returns TRUE. Otherwise, an
exception is raised and an error code returned.
dev_set_draw
,
dev_set_line_width
,
set_colored
Foundation