Skip to content

dump_window_imageDumpWindowImageDumpWindowImagedump_window_imageT_dump_window_image🔗

Short description🔗

dump_window_imageDumpWindowImageDumpWindowImagedump_window_imageT_dump_window_image — Write the window content in an image object.

Signature🔗

dump_window_image( out image Image, window WindowHandle )void DumpWindowImage( HObject* Image, const HTuple& WindowHandle )static void HOperatorSet.DumpWindowImage( out HObject image, HTuple windowHandle )def dump_window_image( window_handle: HHandle ) -> HObject

Herror T_dump_window_image( Hobject* Image, const Htuple WindowHandle )

void HImage::DumpWindowImage( const HWindow& WindowHandle )

HImage HWindow::DumpWindowImage( ) const

void HImage.DumpWindowImage( HWindow windowHandle )

HImage HWindow.DumpWindowImage( )

Description🔗

dump_window_imageDumpWindowImage writes the content of the graphics window (WindowHandlewindowHandlewindow_handle) in an image (Imageimageimage). To transform gray values the current color table of the window is used.

Attention🔗

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.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Imageimageimage (output_object) image → object (byte)HObject (byte)HImage (byte)HObject (byte)Hobject * (byte)

Saved image.

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Result🔗

If the window is valid dump_window_imageDumpWindowImage returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

open_windowOpenWindow, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth, disp_regionDispRegion

See also

open_windowOpenWindow, set_systemSetSystem, dump_windowDumpWindow

Module🔗

Foundation