Operator Reference
get_rgb (Operator)
get_rgb
— Get the current color in RGB-coding.
Signature
get_rgb( : : WindowHandle : Red, Green, Blue)
Description
get_rgb
returns the output colors or gray values, respectively, for
the output window. They are defined by the three color
components red, green and blue.
The values returned by get_rgb
can be set with
set_rgb
.
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
WindowHandle
(input_control) window →
(handle)
Window handle.
Red
(output_control) integer-array →
(integer)
The current color's red value.
Green
(output_control) integer-array →
(integer)
The current color's green value.
Blue
(output_control) integer-array →
(integer)
The current color's blue value.
Result
get_rgb
returns 2 (
H_MSG_TRUE)
if the window is valid.
Otherwise an exception is raised.
Possible Successors
set_rgb
,
disp_region
,
disp_image
See also
Module
Foundation