get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba (算子)
名称
get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba — 获取 RGBA 编码中的当前颜色。
签名
def get_rgba(window_handle: HHandle) -> Tuple[Sequence[int], Sequence[int], Sequence[int], Sequence[int]]
描述
get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba returns the output colors or gray values, respectively, for
the output window. They are defined by the four color components red, green,
blue and alpha.
The values returned by get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba can be set with
set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba。
注意
get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba 依赖于 libcanvas 库,该库在嵌入式系统上可能不可用。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
RedRedRedRedredred (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's red value.
GreenGreenGreenGreengreengreen (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's green value.
BlueBlueBlueBlueblueblue (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's blue value.
AlphaAlphaAlphaAlphaalphaalpha (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
The current color's alpha value.
结果
get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba returns 2 (
H_MSG_TRUE)
if the window is valid.否则将抛出异常。
可能的后继
set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba,
disp_objdisp_objDispObjDispObjDispObjdisp_obj
另见
set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba
模块
基础