dump_window_image — Write the window content in an image object.
dump_window_image writes the content of the graphics window (WindowHandle) in an image (Image). 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.
If the window is valid dump_window_image returns 2 (H_MSG_TRUE). If necessary an exception is raised.
open_window, set_draw, set_color, set_colored, set_line_width, disp_region
open_window, set_system, dump_window