Note
For more details see the Remarks section of the Palette class.
public int GetNearestColorIndex(
Color32 c
)
Public Function GetNearestColorIndex (
c As Color32
) As Integer
public:
int GetNearestColorIndex(
Color32 c
)
member GetNearestColorIndex :
c : Color32 -> int
If the Palette does not contain the specified color, then the result may depend on the arguments passed to the constructor.
If c has transparency, then the result may depend on BackColor and AlphaThreshold values.
The result can be customized by passing a non- delegate to one of the Palette constructors.