Accusoft.ImagXpress12.Net
Capture an Image from Screen
See Also Send Feedback
ImagXpress 12 for .NET - User Guide > How To > View an Image > Capture, Copy, and Paste > Capture an Image from Screen

Glossary Item Box

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

©2013. Accusoft Corporation. All Rights Reserved.