Accusoft ImagXpress 12
CaptureWindow Method
See Also  Send comments on this topic.
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.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : CaptureWindow Method

Glossary Item Box

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

©2013. Accusoft Corporation. All Rights Reserved.