dev_set_color ( : : ColorName : )

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.


Attention

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++.


Parameters

ColorName (input_control)
string(-array) -> string
Output color names.
Default value: 'white'
Suggested values: 'white', 'black', 'gray', 'red', 'green', 'blue'


Example
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)

Result

dev_set_color always returns 2 (H_MSG_TRUE)


Parallelization Information

dev_set_color is local and processed completely exclusively without parallelization.


Possible Predecessors

dev_open_window, query_color, query_all_colors


Possible Successors

dev_display


Alternatives

dev_set_colored


See also

dev_set_draw, dev_set_line_width, set_color


Module

Foundation


Up: Develop    Top: HALCON Operators
Copyright © 1996-2008 MVTec Software GmbH