I have a byte array which contains the data of PNG8 (Color palette and indexes of colors). I need to create Image (or at least simply Bitmap) from my byte array. I haven't problems with PNG24 or PNG32: byte type; int height, width; byte data; ... // Initializing type, height, width and data with B...
I need to get index of every pixel of my Bitmap in color palette (I have an indexed 8bpp image). Now I use the following way: List data = new List(); // indexes List pixels = bitmap.Palette.Entries.ToList(); // palette for (int i = 0; i