get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba (算子名称)

名称

get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba — Get the current color in RGBA-coding.

参数签名

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 depends on the library libcanvas, which might not be available on embedded systems.

运行信息

参数表

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.

AlphaAlphaAlphaAlphaalphaalpha (output_control)  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. Otherwise an exception is raised.

可能的后置算子

set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba, disp_objdisp_objDispObjDispObjDispObjdisp_obj

参考其它

set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba

模块

Foundation