I’m having trouble with this one problem. I’m trying to compare Color RGB in a list
and sort them by there RGB. I’ve thought about adding it to a dictionary but don’t know exactly how to get the values of the colors once their added to the Dictionary. So how would can I get the RBG of color in a list to compare them with one another. Any help or advice and I will be grateful, thanks.
I’m having trouble with this one problem. I’m trying to compare Color RGB in
Share
You can easily use System.Drawing.Color structure for this.
It provides an toArgb method which you can use to get the equivalent integer value of a color.