ColorPalette pal;
Bitmap img;
int i;
int Alpha;
img = new Bitmap(mwidth, mheight, PixelFormat.Format8bppIndexed);
pal = img.Palette;
Alpha = 255;
for (i = 0; i <= 255; i++)
{
pal.Entries = Color.FromArgb(Alpha, i, i, i);
}
img.Palette = pal;
Bitmap img;
int i;
int Alpha;
img = new Bitmap(mwidth, mheight, PixelFormat.Format8bppIndexed);
pal = img.Palette;
Alpha = 255;
for (i = 0; i <= 255; i++)
{
pal.Entries = Color.FromArgb(Alpha, i, i, i);
}
img.Palette = pal;