Blake81
Well-known member
I'm writing an application that gets the color at the postion where you click on a PictureBox and then searches a comma delimited file for the closest matching color. Each line of the file has the color name, its RGB value, and a number calculated using the distance formula, all separated by commas. My application will perfom the calculation on the color you select from the image, but I don't know how to go through the file to find the three closest matches to that number. Thanks for any help.