Captures an image of a window handle.
public RasterImage CaptureWindow(
Public Function CaptureWindow( _
ByVal windowHandle As IntPtr, _
ByVal captureType As Leadtools.Screencapture.ScreenCaptureWindowType, _
ByVal captureInformation As Leadtools.Screencapture.ScreenCaptureInformation _
) As Leadtools.RasterImage
A handle to the window being captured.
A value that indicates the capture type. For possible values refer to ScreenCaptureWindowType.
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.
A Leadtools.RasterImage that represents the captured image.
The hot key needs to be pressed to complete the capture.
For an example, refer to ScreenCaptureEngine.