get_rgbT_get_rgbGetRgbGetRgbget_rgb (算子名称)
名称
get_rgbT_get_rgbGetRgbGetRgbget_rgb
— Get the current color in RGB-coding.
参数签名
def get_rgb(window_handle: HHandle) -> Tuple[Sequence[int], Sequence[int], Sequence[int]]
描述
get_rgbget_rgbGetRgbGetRgbGetRgbget_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_rgbget_rgbGetRgbGetRgbGetRgbget_rgb
can be set with
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb
.
运行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
参数表
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle
(input_control) window →
HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
RedRedRedRedredred
(output_control) integer-array →
HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's red value.
GreenGreenGreenGreengreengreen
(output_control) integer-array →
HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's green value.
BlueBlueBlueBlueblueblue
(output_control) integer-array →
HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's blue value.
结果
get_rgbget_rgbGetRgbGetRgbGetRgbget_rgb
returns 2 (
H_MSG_TRUE)
if the window is valid.
Otherwise an exception is raised.
可能的后置算子
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb
,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
,
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
参考其它
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb
模块
Foundation