Name
query_colorT_query_colorQueryColorQueryColor — Query all color names displayable in the window.
query_colorquery_colorQueryColorQueryColorQueryColor returns the names of all colors that are
usable for region output (disp_regiondisp_regionDispRegionDispRegionDispRegion,
disp_polygondisp_polygonDispPolygonDispPolygonDispPolygon, disp_circledisp_circleDispCircleDispCircleDispCircle, etc.). On a b/w
screen query_colorquery_colorQueryColorQueryColorQueryColor returns 'black' and 'white'. These
two “colors” are displayable on any screen. In addition to 'black'
and 'white' several gray values (e.g. 'dim gray') are returned on
screens capable of gray values. A list of all displayable colors is
returned for screens with color lookup table. The returned tuple of
colors begins with b/w, followed by the three primaries
('red','green','blue') and several gray values.
query_all_colors(::WindowHandle:Colors )query_all_colors(WindowHandle,Colors )QueryAllColors(WindowHandle,Colors )QueryAllColors(WindowHandle,Colors )QueryAllColors(WindowHandle,Colors ) returns a list of all
available colors. For screens
with truecolor output the same list is returned by
query_colorquery_colorQueryColorQueryColorQueryColor. The list of available colors (to HALCON )
must not be confused with the list of displayable colors. For
screens with truecolor output the available colors are only a small
subset of the displayable colors. Colors that are not directly
available to HALCON can be chosen manually with set_rgbset_rgbSetRgbSetRgbSetRgb
or set_hsiset_hsiSetHsiSetHsiSetHsi. If colors are chosen that are known to
HALCON but cannot be displayed, HALCON can choose a similar
color. To use this feature, set_check(::'~color':)
must be set.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
open_window(0,0,-1,-1,'root','invisible','',WindowHandle)
query_color(WindowHandle,Colors)
close_window(WindowHandle)
fwrite_string (FileHandle, ['Displayable colors: ',Colors])
Htuple Colors, WindowHandleTuple ;
open_window(0,0,-1,-1,0,"invisible","",&WindowHandle);
create_tuple(&WindowHandleTuple,1) ;
set_i(WindowHandleTuple, WindowHandle, 0) ;
T_query_color(WindowHandleTuple,&Colors);
close_window(WindowHandle);
for (i=0; i<length_tuple(Colors); i++)
printf("Farbe #%s = %s\n",i,get_s(Colors,i));
open_window(0,0,-1,-1,'root','invisible','',WindowHandle)
query_color(WindowHandle,Colors)
close_window(WindowHandle)
fwrite_string (FileHandle, ['Displayable colors: ',Colors])
open_window(0,0,-1,-1,'root','invisible','',WindowHandle)
query_color(WindowHandle,Colors)
close_window(WindowHandle)
fwrite_string (FileHandle, ['Displayable colors: ',Colors])
open_window(0,0,-1,-1,'root','invisible','',WindowHandle)
query_color(WindowHandle,Colors)
close_window(WindowHandle)
fwrite_string (FileHandle, ['Displayable colors: ',Colors])
query_colorquery_colorQueryColorQueryColorQueryColor returns 2 (H_MSG_TRUE), if the window is
valid. Otherwise an exception is raised.
set_colorset_colorSetColorSetColorSetColor,
disp_regiondisp_regionDispRegionDispRegionDispRegion
query_all_colorsquery_all_colorsQueryAllColorsQueryAllColorsQueryAllColors,
set_colorset_colorSetColorSetColorSetColor,
disp_regiondisp_regionDispRegionDispRegionDispRegion,
open_windowopen_windowOpenWindowOpenWindowOpenWindow
Foundation