get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3 (Operator)

Name

get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3 — Zugreifen auf die Pixeldaten eines Fensters.

Warnung

Dieser Operator kann nicht in HDevelop-Grafikfenstern verwendet werden, die mit dev_open_window geöffnet wurden.

Signatur

get_window_pointer3( : : WindowHandle : ImageRed, ImageGreen, ImageBlue, Width, Height)

Herror T_get_window_pointer3(const Htuple WindowHandle, Htuple* ImageRed, Htuple* ImageGreen, Htuple* ImageBlue, Htuple* Width, Htuple* Height)

void GetWindowPointer3(const HTuple& WindowHandle, HTuple* ImageRed, HTuple* ImageGreen, HTuple* ImageBlue, HTuple* Width, HTuple* Height)

void HWindow::GetWindowPointer3(Hlong* ImageRed, Hlong* ImageGreen, Hlong* ImageBlue, Hlong* Width, Hlong* Height) const

static void HOperatorSet.GetWindowPointer3(HTuple windowHandle, out HTuple imageRed, out HTuple imageGreen, out HTuple imageBlue, out HTuple width, out HTuple height)

void HWindow.GetWindowPointer3(out int imageRed, out int imageGreen, out int imageBlue, out int width, out int height)

Beschreibung

get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3 ermöglicht (bei einigen Fenstersystemen) den direkten Zugriff auf die Bitmap. Rückgabewerte sind die drei Zeiger auf die Farbauszüge eines 24-Bit Fensters (ImageRedImageRedImageRedImageRedimageRed, ImageGreenImageGreenImageGreenImageGreenimageGreen,ImageBlueImageBlueImageBlueImageBlueimageBlue) sowie die Fenstergröße (WidthWidthWidthWidthwidth,HeightHeightHeightHeightheight). In der Programmiersprache C ist der Typ der Bildpunkte unsigned char.

Achtung

get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3 ist nur für den Fenster-Typ 'pixmap' realisiert.

Ausführungsinformationen

Parameter

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fenster-Handle.

ImageRedImageRedImageRedImageRedimageRed (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeiger auf den Rotkanal der Pixeldaten.

ImageGreenImageGreenImageGreenImageGreenimageGreen (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeiger auf den Grünkanal der Pixeldaten.

ImageBlueImageBlueImageBlueImageBlueimageBlue (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeiger auf den Blaukanal der Pixeldaten.

WidthWidthWidthWidthwidth (output_control)  extent.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Länge einer Bildzeile.

HeightHeightHeightHeightheight (output_control)  extent.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der Bildzeilen.

Ergebnis

get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3 liefert den Wert 2 (H_MSG_TRUE), falls das Fenster vom Typ 'pixmap' existiert und gültig ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

open_windowopen_windowOpenWindowOpenWindowOpenWindow

Siehe auch

open_windowopen_windowOpenWindowOpenWindowOpenWindow, set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowType

Modul

Foundation