Visual Basic (Declaration) | |
---|---|
Public Shared Function Paste( _ ByVal owner As IWin32Window _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static RasterImage Paste( IWin32Window owner ) |
C++/CLI | |
---|---|
public: static RasterImage Paste( IWin32Window owner ) |
Parameters
- owner
- Handle to the active window.
Return Value
A reference to a new RasterImage object created using the data in the Windows clipboard.This example loads a bitmap using clipboard data, if available
Visual Basic | Copy Code |
---|---|
Public Sub RasterClipboard_Paste(ByVal viewer As RasterImageViewer) |
C# | Copy Code |
---|---|
public void RasterClipboard_Paste(RasterImageViewer viewer) |
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.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family