I currently write a program which indexes an image to 16 colors, correcting its background-color and correcting the image itself afterwards. To "write pixels" I coded a little method:
Code:
void SetPixel(Bitmap bmp, int x, int y, Color c)
int i;
int min = int.MaxValue;
int minI = 0;
for (i = 0; i < 256; i++)
{