Captures the screen area within the specified window and saves it to the current image.
- 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.
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.