Hello All,

I am using this code to set the palette for an image but exception is throwing as index is out of bounds can any one help me?

ColorPalette palette = bmp.Palette;
palette.Entries[0] = Color.Black;
bmp.Palette = palette;

Thanks in advance