GetPalette Method

NI Vision for Visual Basic

GetPalette Method

Syntax

CWIMAQPalette.GetPalette RedPlane, GreenPlane, BluePlane

Purpose

Gets the red, green, and blue color arrays associated with the current palette.

Parameters

RedPlane As Variant

Red color plane.

GreenPlane As Variant

Green color plane.

BluePlane As Variant

Blue color plane.

Example

' Get the color plane arrays
Dim r,g,b
CWIMAQViewer1.Palette.GetPalette r,g,b

'Replace the green plane with the red plane.
CWIMAQViewer1.Palette.SetPalette r,r,b