I\'m trying to figure out how to sample all of the pixels in an image and generate a palette of colors from it, something like this or this. I have no idea where to even beg
I started here:
System.Drawing.Image img = System.Drawing.Bitmap.FromFile("file"); System.Drawing.Imaging.ColorPalette palette = img.Palette; foreach (Color color in palette.Entries) { //... }