dump_window_imageT_dump_window_imageDumpWindowImageDumpWindowImagedump_window_image (算子)
名称
dump_window_imageT_dump_window_imageDumpWindowImageDumpWindowImagedump_window_image — 将窗口内容写入图像对象中。
签名
描述
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
模块
基础