get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba (Operator)

Name

get_rgbaT_get_rgbaGetRgbaGetRgbaget_rgba — Abfragen der aktuellen Farbe in RGBA-Kodierung.

Signatur

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]]

Beschreibung

get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba gibt die Ausgabefarben bzw. Grauwerte für das Ausgabefenster an. Diese sind durch die drei Farbanteile: rot, grün und blau und den Alphawert AlphaAlphaAlphaAlphaalphaalpha beschrieben. Die Werte die man mit get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba erhält, können mit set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba wieder gesetzt werden.

Achtung

get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba benötigt die Bibliothek libcanvas, die auf Embedded-Systemen möglicherweise nicht verfügbar ist.

Ausführungsinformationen

Parameter

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

RedRedRedRedredred (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Rotanteil der aktuellen Farbe.

GreenGreenGreenGreengreengreen (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Grünanteil der aktuellen Farbe.

BlueBlueBlueBlueblueblue (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Blauanteil der aktuellen Farbe.

AlphaAlphaAlphaAlphaalphaalpha (output_control)  integer-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Alphawert der aktuellen Farbe.

Ergebnis

get_rgbaget_rgbaGetRgbaGetRgbaGetRgbaget_rgba liefert den Wert 2 (H_MSG_TRUE), falls das Fenster gültig ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Nachfolger

set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba, disp_objdisp_objDispObjDispObjDispObjdisp_obj

Siehe auch

set_rgbaset_rgbaSetRgbaSetRgbaSetRgbaset_rgba

Modul

Foundation