Copies image data from the clipboard.
public static RasterImage Paste(
IWin32Window owner
)
public:
static RasterImage^ Paste(
IWin32Window^ owner
)
public:
static RasterImage^ Paste(
IWin32Window^ owner
)
owner
Handle to the active window.
A reference to a new RasterImage object created using the data in the Windows clipboard.
The image on the clipboard must be a DIB, DDB, or a WMF. The image will contain the same Leadtools.RasterImage.Width, Leadtools.RasterImage.Height, and Leadtools.RasterImage.BitsPerPixel as the image contained in the clipboard. The Leadtools.RasterImage.Order will be set to RasterByteOrder.Bgr. If the copied image is not in Bgr order, it is up to you to change its color Order using Leadtools.ImageProcessing.ColorResolutionCommand. To determine whether a region was pasted, use Leadtools.RasterImage.HasRegion.
This example loads a bitmap using clipboard data, if available
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
public void RasterClipboard_Paste(RasterImageViewer viewer)
{
if (RasterClipboard.IsReady)
{
/// Copy the bitmap from the clipboard
viewer.Image = RasterClipboard.Paste(viewer);
Console.WriteLine("Paste is Successful");
}
else
{
Console.WriteLine("Paste Failed");
}
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.