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

get_rgbT_get_rgbget_rgbGetRgbGetRgb (Operator)

Name

get_rgbT_get_rgbget_rgbGetRgbGetRgb — Get the current color in RGB-coding.

Signature

get_rgb( : : WindowHandle : Red, Green, Blue)

Herror T_get_rgb(const Htuple WindowHandle, Htuple* Red, Htuple* Green, Htuple* Blue)

Herror get_rgb(const HTuple& WindowHandle, HTuple* Red, HTuple* Green, HTuple* Blue)

HTuple HWindow::GetRgb(HTuple* Green, HTuple* Blue) const

void HOperatorSetX.GetRgb(
[in] VARIANT WindowHandle, [out] VARIANT* Red, [out] VARIANT* Green, [out] VARIANT* Blue)

VARIANT HWindowX.GetRgb(
[out] VARIANT* Green, [out] VARIANT* Blue)

static void HOperatorSet.GetRgb(HTuple windowHandle, out HTuple red, out HTuple green, out HTuple blue)

void HWindow.GetRgb(out HTuple red, out HTuple green, out HTuple blue)

Description

get_rgbget_rgbget_rgbGetRgbGetRgb returns the output colors or gray values, respectively, for the output window. They are defined by the three color components red, green and blue.

get_rgbget_rgbget_rgbGetRgbGetRgb is like get_pixelget_pixelget_pixelGetPixelGetPixel but returns the entries of the color lookup table rather than the indices. The values returned by get_rgbget_rgbget_rgbGetRgbGetRgb can be set with set_rgbset_rgbset_rgbSetRgbSetRgb.

Parallelization

Parameters

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

Window_id.

RedRedRedRedred (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

The current color's red value.

GreenGreenGreenGreengreen (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

The current color's green value.

BlueBlueBlueBlueblue (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

The current color's blue value.

Result

get_rgbget_rgbget_rgbGetRgbGetRgb returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Possible Successors

set_rgbset_rgbset_rgbSetRgbSetRgb, disp_regiondisp_regiondisp_regionDispRegionDispRegion, disp_imagedisp_imagedisp_imageDispImageDispImage

See also

set_rgbset_rgbset_rgbSetRgbSetRgb

Module

Foundation


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