clipboard class : SetImage(bitmap) method
Description
Sets an image data.
Syntax
instance.SetImage(bitmap data)
Arguments
Class | Name | Description |
bitmap | data | An image. |
Return value
None.
Sample code
1: | bitmap bmp = new bitmap("C:\Users\YourName\Documents\img\someimage.png"); |
2: | clipboard clip; |
3: | clip.SetImage(bmp); |
Notes
If you set an uninitialized bitmap, nothing happens.
It is a wrapper of the System.Windows.Clipboard.SetImage(BitmapSource).