I have a UIImage that is jpeg with a background color that is one of six RGB color combinations. The JPeg could, however, be compressed.
I need to determine which of the six RGB color combinations most closely matches the background color. I know that the lower right corner of the image will always be the background color, so there no concern about knowing where to sample the image.
My question is, "Is there a fairly simple way of doing this without writing a ton of code?"
Thanks, in advance, for any suggestions.