ImagXpress 13 for .NET - User Guide > How To > View an Image > Capture, Copy, and Paste > Copy & Paste Image Using the Clipboard |
The following example illustrates how to copy an image to the clipboard:
C# Example |
Copy Code
|
---|---|
// This code demonstrates how to assign an image object to a viewer ImageXView1.Image = sourceImageX; // copy the image to the clipboard ImageXView1.CopyToClipboard(); // the clipboard now contains a copy of the sourceImageX object. |
The following example illustrates how to paste an object from the clipboard to an ImageX object:
C# Example |
Copy Code
|
---|---|
// This code demonstrates how to assign an image object to a viewer ImageXView1.Image = targetImageX; // paste the image from the clipboard ImageXView1.PasteFromClipboard(); // the targetImageX object now has the image from the clipboard. |