WriteImageToClipboard Method
Syntax
CWIMAQVision.WriteImageToClipboard SourceImage [, ColorPalette]
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Writes an image to the clipboard.
Remarks
Use this method with U8 and RGB32 images.
Parameters
SourceImage As CWIMAQImage
The image to copy to the clipboard
ColorPalette As Variant
[Optional] A CWIMAQPalette object that defines a color table to associate with 8-bit images. Do not provide this input to write a grayscale palette to the clipboard.
Example
Private Sub Run_Click() 'Copy the image in Viewer1 to the clipboard with the currently selected palette 'in Viewer1. CWIMAQVision1.WriteImageToClipboard CWIMAQViewer1.Image, CWIMAQViewer1.Palette End Sub