clipboard class : GetImage() method

Description

Gets an image data from the clipboard.

Syntax

instance.GetImage()

Arguments

None.

Return value

ClassDescription
bitmapAn image data.

Sample code

1:

clipboard clip;

2:

bitmap bmp = clip.GetImage();

Notes

If the image data exists, it is returned as an instance of the bitmap. Otherwise, returns an uninitialized bitmap instance.

It is a wrapper of the System.Windows.Clipboard.GetImage().

Links for reference

Copyright © Cooker All rights reserved.