Note
For more details see the Remarks section of the Palette class.
public Color32 GetNearestColor(
Color32 c
)
Public Function GetNearestColor (
c As Color32
) As Color32
public:
Color32 GetNearestColor(
Color32 c
)
member GetNearestColor :
c : Color32 -> Color32
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.
IndexOutOfRangeException | The Palette class was initialized by a custom lookup delegate, which returned an invalid index. |