get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 (算子名称)
名称
get_window_pointer3T_get_window_pointer3GetWindowPointer3GetWindowPointer3get_window_pointer3 — Access to a window's pixel data.
警告
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
参数签名
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 (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
ImageRedImageRedImageRedImageRedimageRedimage_red (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Pointer on red channel of pixel data.
ImageGreenImageGreenImageGreenImageGreenimageGreenimage_green (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Pointer on green channel of pixel data.
ImageBlueImageBlueImageBlueImageBlueimageBlueimage_blue (output_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Pointer on blue channel of pixel data.
WidthWidthWidthWidthwidthwidth (output_control) extent.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Length of an image line.
HeightHeightHeightHeightheightheight (output_control) 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 returns 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
可能的前置算子
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
参考其它
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type
模块
Foundation