Leadtools.Controlsアセンブリ > Leadtools.Controls名前空間 > RasterClipboardクラス :Pasteメソッド |
public static RasterImage Paste( IntPtr owner )
'Declaration
Public Shared Function Paste( _ ByVal owner As IntPtr _ ) As RasterImage
このサンプルは、利用可能な場合にクリップボードのデータを使用してビットマップをロードします。
Imports Leadtools Imports Leadtools.Controls Imports Leadtools.Codecs Public Sub RasterClipboard_Paste(ByVal imageViewer As ImageViewer) If RasterClipboard.IsReady Then ''' Copy the bitmap from the clipboard imageViewer.Image = RasterClipboard.Paste(imageViewer.Handle) MessageBox.Show("Paste is Successful") Else MessageBox.Show("Paste Failed") End If End Sub
using Leadtools; using Leadtools.Controls; using Leadtools.Codecs; public void RasterClipboard_Paste() { if (RasterClipboard.IsReady) { /// Copy the bitmap from the clipboard _imageViewer.Image = RasterClipboard.Paste(_imageViewer.Handle); MessageBox.Show("Paste is Successful"); } else { MessageBox.Show("Paste Failed"); } }