CaptureWindow Method

Summary
Captures an image of a window handle.
Syntax
C#
VB
C++
  
Public Function CaptureWindow( _ 
   ByVal windowHandle As IntPtr, _ 
   ByVal captureType As ScreenCaptureWindowType, _ 
   ByVal captureInformation As ScreenCaptureInformation _ 
) As RasterImage 

Parameters

windowHandle
A handle to the window being captured.

captureType
A value that indicates the capture type. For possible values refer to ScreenCaptureWindowType.

captureInformation
A ScreenCaptureInformation class object to be filled with information regarding the source for the captured image. Pass NULL if you are not interested in extra information about the capture.

Return Value

A Leadtools.RasterImage that represents the captured image.

Remarks

The hot key needs to be pressed to complete the capture.

Example

For an example, refer to ScreenCaptureEngine.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ScreenCapture Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.