ClipboardToImage Method

NI Vision for Visual Basic

ClipboardToImage Method

Syntax

CWIMAQVision.ClipboardToImage DestImage, ColorTable, ClipboardHasImage

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use ReadImageFromClipboard instead. Copies an image from the clipboard.

Remarks

Use this method with image types U8 and RGB32.

Parameters

DestImage As CWIMAQImage

The image into which the method copies the clipboard image.

ColorTable As Variant

On return, an array of 256 entries that receives the palette associated with the 8-bit clipboard image. If there is no palette associated with the image, the method will fill in a gray palette.

ClipboardHasImage As Boolean

On return, True if the clipboard contains an image.

See Also

ReadImageFromClipboard