Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
Leadtools.WinForms Namespace > RasterClipboard Class : Paste Method |
public static RasterImage Paste( IWin32Window owner )
'Declaration Public Shared Function Paste( _ ByVal owner As IWin32Window _ ) As RasterImage
'Usage Dim owner As IWin32Window Dim value As RasterImage value = RasterClipboard.Paste(owner)
public: static RasterImage^ Paste( IWin32Window^ owner )
This example loads a bitmap using clipboard data, if available
Imports Leadtools.WinForms Imports Leadtools Imports Leadtools.Codecs Public Sub RasterClipboard_Paste(ByVal viewer As RasterImageViewer) If RasterClipboard.IsReady Then ''' Copy the bitmap from the clipboard viewer.Image = RasterClipboard.Paste(viewer) Console.WriteLine("Paste is Successful") Else Console.WriteLine("Paste Failed") End If End Sub
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"); } }