GetPicture Property (AClipboard)

Returns a graphic picture object from the Clipboard object.

Syntax

pic = Clipboard.GetPicture(enFormat)

The GetPicturemethod syntax has the following parts:

 

Name

Type

Description

pic

APicture

Returned picture object

Clipboard

AClipboard

The system clipboard internal variable

enFormat

enumAClipboardFormat

An integer that specifies the Clipboard object picture format.

Where

enumAClipboardFormat:

 

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

Comments

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.

Example

The following statement returns the clipboard picture in a bitmap format:

pic=Clipboard.GetPicture(acfBitmap)

if pic=Nothing

print "No Picture found"

endif

Applies to

AClipboard

See Also

Clipboard, GetFormat, GetText