HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators

set_coloredset_coloredset_coloredSetColoredSetColored (Operator)

Name

set_coloredset_coloredset_coloredSetColoredSetColored — Set multiple output colors.

Signature

set_colored( : : WindowHandle, NumberOfColors : )

Herror set_colored(const Hlong WindowHandle, const Hlong NumberOfColors)

Herror T_set_colored(const Htuple WindowHandle, const Htuple NumberOfColors)

Herror set_colored(const HTuple& WindowHandle, const HTuple& NumberOfColors)

void HWindow::SetColored(const HTuple& NumberOfColors) const

void HOperatorSetX.SetColored(
[in] VARIANT WindowHandle, [in] VARIANT NumberOfColors)

void HWindowX.SetColored([in] Hlong NumberOfColors)

static void HOperatorSet.SetColored(HTuple windowHandle, HTuple numberOfColors)

void HWindow.SetColored(int numberOfColors)

Description

set_coloredset_coloredset_coloredSetColoredSetColored is a shortcut for certain set_colorset_colorset_colorSetColorSetColor calls. It allows the user to display a region set in different colors. NumberOfColorsNumberOfColorsNumberOfColorsNumberOfColorsnumberOfColors defines the number of colors that are used. Valid values for NumberOfColorsNumberOfColorsNumberOfColorsNumberOfColorsnumberOfColors can be queried with query_coloredquery_coloredquery_coloredQueryColoredQueryColored. Furthermore, the list of available colors can be set with the operator set_system(::'graphic_colors',...:)set_system("graphic_colors",...)set_system("graphic_colors",...)SetSystem("graphic_colors",...)SetSystem("graphic_colors",...). This must be done before opening the first output window.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window_id.

NumberOfColorsNumberOfColorsNumberOfColorsNumberOfColorsnumberOfColors (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Number of output colors.

Default value: 12

List of values: 3, 6, 12

Result

set_coloredset_coloredset_coloredSetColoredSetColored returns 2 (H_MSG_TRUE) if NumberOfColorsNumberOfColorsNumberOfColorsNumberOfColorsnumberOfColors is correct and the window is valid. Otherwise an exception is raised.

Possible Predecessors

query_coloredquery_coloredquery_coloredQueryColoredQueryColored, set_colorset_colorset_colorSetColorSetColor

Possible Successors

disp_regiondisp_regiondisp_regionDispRegionDispRegion

See also

query_coloredquery_coloredquery_coloredQueryColoredQueryColored, set_colorset_colorset_colorSetColorSetColor, disp_regiondisp_regiondisp_regionDispRegionDispRegion

Module

Foundation


Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH