Error processing SSI file
(Leadtools.Controls)

Show in webframe

Paste Method




Handle to the active window (use HandleControl.Handle).
Copies image data from the clipboard.
Syntax
public static RasterImage Paste( 
   IntPtr owner
)
'Declaration
 
Public Shared Function Paste( _
   ByVal owner As IntPtr _
) As RasterImage

Parameters

owner
Handle to the active window (use HandleControl.Handle).

Return Value

A reference to a new RasterImage object created using the data in the Windows clipboard.
Remarks
The image on the clipboard must be a DIB, DDB, or a WMF.
The image will contain the same Width, Height, and BitsPerPixel as the image contained in the clipboard.
The 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 ColorResolutionCommand.
To determine whether a region was pasted, use HasRegion.
Example

This example loads a bitmap using clipboard data, if available

Copy Code  
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");
   }
}
Requirements

Target Platforms

See Also

Reference

RasterClipboard Class
RasterClipboard Members

Error processing SSI file