NearestPaletteIndexColor

Top  Previous  Next

 

NearestPaletteIndexColor (Method)

 

This function returns the index to the current color palette with a RGB color which matches or looks like the specific RGB color

 

Syntax:

Function NearestPaletteIndexColor(RGBColor As Integer) As Short

 

The NearestPaletteIndexColor method syntax consists of the following:

Parameter

Data Type

Description

RGBColor

Integer

Is the RGB color to be found

 

Return value:

Short - Is the nearest palette color index

 

Example