Returns a graphic picture object from the Clipboard object.
pic = Clipboard.GetPicture(enFormat)
The GetPicturemethod syntax has the following parts:
|
Name |
Type |
Description |
|
pic |
Returned picture object |
|
|
The system clipboard internal variable |
||
|
enFormat |
An integer that specifies the Clipboard object picture format. |
|
Name |
Value |
Description |
|
acfText |
1 |
Text string (N/A for this method) |
|
acfBitmap |
2 |
Bitmap picture |
|
acfMetafile |
3 |
Metafile picture |
|
acfDIB |
8 |
Device-independent bitmap picture |
|
acfPalette |
9 |
Pallete |
|
acfEnhMetafile |
14 |
Enhanced metafile picture |
|
acfDDELink |
0xBF00 |
DDE Conversation Information text string (N/A for this method) |
|
acfRTF |
0xBF01 |
Rich text format text string (N/A for this method) |
|
acfIcon |
0xBF02 |
Icon picture |
If no graphic on the Clipboard object matches the expected format, Nothing is returned. If only a color palette is present on the Clipboard object, a minimum size (1 x 1) DIB is created.
The following statement returns the clipboard picture in a bitmap format:
pic=Clipboard.GetPicture(acfBitmap)
if pic=Nothing
print "No Picture found"
endif