SetPalColor

Top  Previous  Next

 

SetPalColor (Method)

 

This function assigns the RGB color to an short position (index) in the current color palette.

 

Syntax:

Function SetPalColor(index0 As Short, clr As Integer) As Boolean

 

The SetPalColor method syntax consists of the following:

Parameter

Data Type

Description

index0

Short

Is the position (index) in the color palette

clr

Integer

Is the RGB color

 

Return value:

Boolean - True on success, false on error.

 

Example