I have a BMP file.. a basic barcode image.. When I go to save it Bitmap.save(File) it saves the BMP file all fine, but when I open it in photoshop its a indexed or RGB color bmp files.
I need the file to be a 1bit black and white bmp file. Its just a barcode...
I have been googling for hours, and I am unable to convert the c# examples (often uses Unsafe code) and all other examples are also just creating what photoshop sees as a RGB image.
I need the file to be 1bit bmp as its loaded onto a ePaper device (like a kindle reader) and the device supplier has provided sample bitmaps that when loaded into photoshop as a mode Bitmap... not RGB or indexed.
Any tips on how to get the file saved correctly ?
HPD
Here is the code i was working with...
Dim original = New Bitmap("c:\temp\24.bmp")
Dim Rectangle = New Rectangle(0, 0, original.Width, original.Height)
Dim bmp1bpp = original.Clone(Rectangle, PixelFormat.Format1bppIndexed)
bmp1bpp.Save("c:\temp\24bit1.bmp")