Accusoft ImagXpress 13
CaptureWindow Method
The handle to the window whose client area will be captured.
The x-coordinate of the upper left corner of the window's capture area, in pixels.
The y-coordinate of the upper left corner of the window's capture area, in pixels.
The width of the windows capture area in pixels.
The height of the windows capture area in pixels.
Description
Captures the screen area within the specified window and saves it to the current image.
Syntax
Visual Basic
Public Sub CaptureWindow( _
   ByVal hWnd As Long, _
   ByVal x As Long, _
   ByVal y As Long, _
   ByVal width As Long, _
   ByVal height As Long _
) 
Parameters
hWnd
The handle to the window whose client area will be captured.
x
The x-coordinate of the upper left corner of the window's capture area, in pixels.
y
The y-coordinate of the upper left corner of the window's capture area, in pixels.
width
The width of the windows capture area in pixels.
height
The height of the windows capture area in pixels.
Remarks

If the capture succeeds, the image located in the current Process buffer is replaced with the captured image.

If the capture fails, the ImagError property is set to IX_Error_CaptureFailed.

Setting the width or height to zero will cause the whole client area of the window to be captured no matter what value was chosen for x or y.

 

See Also

ImagXpress Object  | ImagXpress Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback