clipboard class : SetImage(bitmap) method

Description

Sets an image data.

Syntax

instance.SetImage(bitmap data)

Arguments

ClassNameDescription
bitmapdataAn 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).

Links for reference

Copyright © Cooker All rights reserved.