I have an image of a signature I am trying to save as 1 bpp bitmap to save file space. The full .NET Framework has the enum PixelFormat.Format1bppIndexed
, but
Creating and saving a bitonal bitmap is problematic even in the full framework.
I previously authored an article on this issues involved.
http://www.codeproject.com/KB/GDI-plus/BitonalImageConverter.aspx
I revisited this code in the context of the compact framework and discovered as you did that the enum value does not exist, so you can't create a bitonal image from scratch.
I'd be interested to know if you can load pre-existing bitonal images in the compact framework. If you can load pre-existing bitonal bitmaps, then it might be possible to go lower level and write the bitmap image format to disk or a memory stream directly, rather than use the GDI+ objects, but it would be non-trivial to do so.