Skip to content

query_all_colorsQueryAllColorsQueryAllColorsquery_all_colorsT_query_all_colorsπŸ”—

Short descriptionπŸ”—

query_all_colorsQueryAllColorsQueryAllColorsquery_all_colorsT_query_all_colors β€” Query all color names.

SignatureπŸ”—

query_all_colors( window WindowHandle, out string Colors )void QueryAllColors( const HTuple& WindowHandle, HTuple* Colors )static void HOperatorSet.QueryAllColors( HTuple windowHandle, out HTuple colors )def query_all_colors( window_handle: HHandle ) -> Sequence[str]

Herror T_query_all_colors( const Htuple WindowHandle, Htuple* Colors )

HTuple HWindow::QueryAllColors( ) const

HTuple HWindow.QueryAllColors( )

DescriptionπŸ”—

query_all_colorsQueryAllColors returns the names of all colors that are known to HALCON. That doesn’t mean that these colors are available for specific screens. On some screens there may only be a subset of colors available (see query_colorQueryColor). The HALCON colors are used to display regions (disp_regionDispRegion, disp_polygonDispPolygon, disp_circleDispCircle, etc.). They can be defined with set_colorSetColor.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Colorscolorscolors (output_control) string-array β†’ (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

Color names.

ResultπŸ”—

query_all_colorsQueryAllColors always returns 2 (H_MSG_TRUE)

Combinations with other operatorsπŸ”—

Combinations

Possible successors

set_systemSetSystem, set_colorSetColor, disp_regionDispRegion

See also

query_colorQueryColor, set_systemSetSystem, set_colorSetColor, disp_regionDispRegion, open_windowOpenWindow

ModuleπŸ”—

Foundation