Searches index of the color closest to given one.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Dim red As Aurigma.GraphicsMill.RgbColor = _ Aurigma.GraphicsMill.RgbColor.Red Dim index As Integer = palette.FindNearestIndex(red) Console.WriteLine(index)
Aurigma.GraphicsMill.RgbColor red = Aurigma.GraphicsMill.RgbColor.Red; int index = palette.FindNearestIndex(red); Console.WriteLine(index);