Unicode Controls & Classes for VB6 - Version 4

clsPalette.ClosestIndex Property

Returns the closest index of the palette colors to the one passed in input

Syntax
Public Property Get ClosestIndex (ByVal Red As Long, _
ByVal Green As Long, _
ByVal Blue As Long) As Long
Parameters
Parameter Description
ByVal Red As Long Red component of the color
ByVal Green As Long Green component of the color
ByVal Blue As Long Blue component of the color
Remarks