get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba (算子)

名称

get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba — 获取 RGBA 编码中的当前颜色。

签名

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

Herror T_get_rgba(const Htuple WindowHandle, Htuple* Red, Htuple* Green, Htuple* Blue, Htuple* Alpha)

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

void HWindow::GetRgba(HTuple* Red, HTuple* Green, HTuple* Blue, HTuple* Alpha) const

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

void HWindow.GetRgba(out HTuple red, out HTuple green, out HTuple blue, out HTuple alpha)

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

模块

基础