Set one or more output colors.
dev_set_color defines the colors for region and line oriented output in the graphics windows. The available colors can be queried with the operator query_color. The “colors” 'black' and 'white' are available for all screens. If colors are used that are not displayable on the screen, HALCON can choose a similar, displayable color of the output. For this, set_check(::'~color':) must be called.
The defined colors are used until dev_set_color or dev_set_colored is called.
Colors are defined for all graphics windows in contrast to the operator set_color.
If dev_set_color should be used for exported Code (C++), please note the description of set_color due to the different semantics in C++.
|
ColorName (input_control) |
string(-array) -> string |
| Output color names. | |
| Default value: 'white' | |
| Suggested values: 'white', 'black', 'gray', 'red', 'green', 'blue' | |
read_image(Image,'mreut')
dev_set_draw('fill')
dev_set_color('red')
threshold(Image,Region,180,255)
dev_set_color('green')
threshold(Image,Region,0,179)
dev_set_color always returns 2 (H_MSG_TRUE)
dev_set_color is local and processed completely exclusively without parallelization.
dev_open_window, query_color, query_all_colors
dev_set_draw, dev_set_line_width, set_color
Foundation