Accusoft.ImagXpress13.Net
Capture an Image from Screen

Capture the Screen Area Bounded by the ImageXView Window and Save to an ImageX Object

The following example illustrates how to capture the screen area bounded by the ImageXView Window:

C# Example
Copy Code
// This code demonstrates how to assign the image object to a viewer
ImageXView1.Image = targetImageX;
// capture the screen area within the viewer and save it to the target image object
ImageXView1.CaptureControl();
// targetImageX now contains the image in the screen area bounded by the control.

 

Capture the Entire Screen Area within a Specified Window

The following example illustrates how to capture the entire screen area within a specified window: 

C# Example
Copy Code
// This code demonstrates how to assign the image object to a viewer
ImageXView1.Image = targetImageX;
// capture the screen area within the viewer and save it to the target image object
// if only a part of the window's screen area should be captured, specify a captureRectangle
ImageXView1.CaptureWindow(hWnd, captureRectangle);
// targetImageX now contains the image in the screen area bounded by the control.
See Also

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback