ImagXpress 13 for .NET - User Guide > How To > View an Image > Capture, Copy, and Paste > Capture an Image from Screen |
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. |
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. |