dump_window_imageT_dump_window_imageDumpWindowImageDumpWindowImagedump_window_image (算子)

名称

dump_window_imageT_dump_window_imageDumpWindowImageDumpWindowImagedump_window_image — 将窗口内容写入图像对象中。

签名

dump_window_image( : Image : WindowHandle : )

Herror T_dump_window_image(Hobject* Image, const Htuple WindowHandle)

void DumpWindowImage(HObject* Image, const HTuple& WindowHandle)

void HImage::DumpWindowImage(const HWindow& WindowHandle)

HImage HWindow::DumpWindowImage() const

static void HOperatorSet.DumpWindowImage(out HObject image, HTuple windowHandle)

void HImage.DumpWindowImage(HWindow windowHandle)

HImage HWindow.DumpWindowImage()

def dump_window_image(window_handle: HHandle) -> HObject

描述

dump_window_imagedump_window_imageDumpWindowImageDumpWindowImageDumpWindowImagedump_window_image writes the content of the graphics window (WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle) in an image (ImageImageImageImageimageimage). To transform gray values the current color table of the window is used.

注意

Under Unix-like systems, the graphics window must be completely visible on the root window, because otherwise the contents of the window cannot be read due to limitations in X Windows.

执行信息

参数

ImageImageImageImageimageimage (输出对象)  image objectHImageHObjectHImageHobject * (byte)

Saved image.

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

窗口句柄。

结果

If the window is valid dump_window_imagedump_window_imageDumpWindowImageDumpWindowImageDumpWindowImagedump_window_image 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_systemset_systemSetSystemSetSystemSetSystemset_system, dump_windowdump_windowDumpWindowDumpWindowDumpWindowdump_window

模块

基础