B
bern11
Anyone know how to create a 16bppGrayScale? The following code
crashes at the save statement with an OutOfMemory exception:
bmpTemp = new Bitmap(bmpBuffer.Width, bmpBuffer.Height,
PixelFormat.Format16bppGrayScale);
bmpTemp.Save(ImageSaveFileDlg.FileName);
Am I missing a pallete initialization or something? This is simply a
test snipet to test creating a GrayScale bitmap. I was expecting it to
save a blank or random-noise bitmap
crashes at the save statement with an OutOfMemory exception:
bmpTemp = new Bitmap(bmpBuffer.Width, bmpBuffer.Height,
PixelFormat.Format16bppGrayScale);
bmpTemp.Save(ImageSaveFileDlg.FileName);
Am I missing a pallete initialization or something? This is simply a
test snipet to test creating a GrayScale bitmap. I was expecting it to
save a blank or random-noise bitmap
Rgb555 and Rgb565 worked, but the