Class ClipboardMetafileHelper
Helper class to copy metafiles to the clipboard.
The .NET classes Clipboard
and DataObject
are unable
to properly deal with metafiles.
Inheritance
System.Object
ClipboardMetafileHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Codecrete.SwissQRBill.Windows
Assembly: Codecrete.SwissQRBill.Windows.dll
Syntax
public class ClipboardMetafileHelper
Methods
| Improve this Doc View SourcePutOnClipboard(IntPtr, Metafile, Bitmap)
Puts the specified metafile and optionally the specified bitmap on the clipboard.
The metafile and the bitmap are expected to represent the same image.
Declaration
public static bool PutOnClipboard(IntPtr hWnd, Metafile metafile, Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | hWnd | A Windows handle (used to access the clipboard) |
System.Drawing.Imaging.Metafile | metafile | The metafile. |
System.Drawing.Bitmap | bitmap | The bitmap, or |
Returns
Type | Description |
---|---|
System.Boolean |
|