get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 (算子)

名称

get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 — 访问窗口的像素数据。

警告

This operator does not work in an HDevelop graphics window opened with dev_open_window.

签名

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)

def get_window_pointer3(window_handle: HHandle) -> Tuple[int, int, int, int, int]

描述

get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 enables (in some window systems) the direct access to the bitmap. Result values are the three pointers on the color extracts of a 24-bit window (ImageRedImageRedImageRedImageRedimageRedimage_red, ImageGreenImageGreenImageGreenImageGreenimageGreenimage_green, ImageBlueImageBlueImageBlueImageBlueimageBlueimage_blue), as well as the window size (WidthWidthWidthWidthwidthwidth, HeightHeightHeightHeightheightheight). In the language C the type of the image points is unsigned char.

注意

get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 is usable only for window type 'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap".

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

ImageRedImageRedImageRedImageRedimageRedimage_red (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Pointer on red channel of pixel data.

ImageGreenImageGreenImageGreenImageGreenimageGreenimage_green (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Pointer on green channel of pixel data.

ImageBlueImageBlueImageBlueImageBlueimageBlueimage_blue (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Pointer on blue channel of pixel data.

WidthWidthWidthWidthwidthwidth (输出控制)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Length of an image line.

HeightHeightHeightHeightheightheight (输出控制)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of image lines.

结果

If a window of type 'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap" exists and it is valid get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

另见

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type

模块

基础