ClassesClassesClassesClasses | | | | Operators

set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba (Operator)

Name

set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba — Set the color definition via RGBA values.

Signature

set_rgba( : : WindowHandle, Red, Green, Blue, Alpha : )

Herror set_rgba(const Hlong WindowHandle, const Hlong Red, const Hlong Green, const Hlong Blue, const Hlong Alpha)

Herror T_set_rgba(const Htuple WindowHandle, const Htuple Red, const Htuple Green, const Htuple Blue, const Htuple Alpha)

Herror set_rgba(const HTuple& WindowHandle, const HTuple& Red, const HTuple& Green, const HTuple& Blue, const HTuple& Alpha)

void HWindow::SetRgba(const HTuple& Red, const HTuple& Green, const HTuple& Blue, const HTuple& Alpha) const

void SetRgba(const HTuple& WindowHandle, const HTuple& Red, const HTuple& Green, const HTuple& Blue, const HTuple& Alpha)

void HWindow::SetRgba(const HTuple& Red, const HTuple& Green, const HTuple& Blue, const HTuple& Alpha) const

void HWindow::SetRgba(Hlong Red, Hlong Green, Hlong Blue, Hlong Alpha) const

void HOperatorSetX.SetRgba(
[in] VARIANT WindowHandle, [in] VARIANT Red, [in] VARIANT Green, [in] VARIANT Blue, [in] VARIANT Alpha)

void HWindowX.SetRgba(
[in] VARIANT Red, [in] VARIANT Green, [in] VARIANT Blue, [in] VARIANT Alpha)

static void HOperatorSet.SetRgba(HTuple windowHandle, HTuple red, HTuple green, HTuple blue, HTuple alpha)

void HWindow.SetRgba(HTuple red, HTuple green, HTuple blue, HTuple alpha)

void HWindow.SetRgba(int red, int green, int blue, int alpha)

Description

set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba sets the output color(s) or the gray values, respectively, for region output for the window. The colors are defined with the red, green, blue, and alpha components. If only one combination is passed, all output takes place in that color. If a tuple is passed, region output and output of geometric objects takes place modulo the passed colors.

For every call of an output operator, output is started with the first color. If only one object is displayed per call, it will always be displayed in the first color. This is even true for objects with multiple connection components. If multiple objects are displayed per operator call, multiple colors are used. The defined colors are used until set_colorset_colorSetColorset_colorSetColorSetColor, set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba, or set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb is called again. The values are used by operators like disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, disp_linedisp_lineDispLinedisp_lineDispLineDispLine, disp_rectangle1disp_rectangle1DispRectangle1disp_rectangle1DispRectangle1DispRectangle1, disp_rectangle2disp_rectangle2DispRectangle2disp_rectangle2DispRectangle2DispRectangle2, disp_arrowdisp_arrowDispArrowdisp_arrowDispArrowDispArrow, etc.

Attention

set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba depends on the library libcanvas, which might not be available on embedded systems.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

RedRedRedRedRedred (input_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Red component of the color.

Default value: 255

Typical range of values: 0 ≤ Red Red Red Red Red red ≤ 255

Restriction: 0 <= Red && Red <= 255

GreenGreenGreenGreenGreengreen (input_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Green component of the color.

Default value: 0

Typical range of values: 0 ≤ Green Green Green Green Green green ≤ 255

Restriction: 0 <= Green && Green <= 255

BlueBlueBlueBlueBlueblue (input_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Blue component of the color.

Default value: 0

Typical range of values: 0 ≤ Blue Blue Blue Blue Blue blue ≤ 255

Restriction: 0 <= Blue && Blue <= 255

AlphaAlphaAlphaAlphaAlphaalpha (input_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Alpha component of the color.

Default value: 255

Typical range of values: 0 ≤ Alpha Alpha Alpha Alpha Alpha alpha ≤ 255

Restriction: 0 <= Alpha && Alpha <= 255

Result

set_rgbaset_rgbaSetRgbaset_rgbaSetRgbaSetRgba returns 2 (H_MSG_TRUE) if the window is valid and all passed colors are available and displayable. Otherwise an exception is raised.

Possible Successors

disp_objdisp_objDispObjdisp_objDispObjDispObj

Alternatives

set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_colorset_colorSetColorset_colorSetColorSetColor

Module

Foundation


ClassesClassesClassesClasses | | | | Operators