Class ClipboardMetafileHelper
Helper class to copy metafiles to the clipboard.
The .NET classes Clipboard
and DataObject
are unable
to properly deal with metafiles.
Inherited Members
Namespace: Codecrete.SwissQRBill.Windows
Assembly: Codecrete.SwissQRBill.Windows.dll
Syntax
public class ClipboardMetafileHelper
Methods
| Edit this page 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 |
---|---|---|
IntPtr | hWnd | A Windows handle (used to access the clipboard) |
Metafile | metafile | The metafile. |
Bitmap | bitmap | The bitmap, or |
Returns
Type | Description |
---|---|
bool |
|