You can store your bitmap as a palette-based PNG with 2 colors. As far as I
know the PNG format allows lossless run-length encoding compression.
If you really want to implement your own data format then the simplest
approach would be a file header with image width and height, 6 bytes for
the
How can I save the bitmap programatically in a 2 color palette png? Is that
possible?
On Sunday, December 30, 2012 5:26:42 PM UTC+2, Nobu Games wrote:
You can store your bitmap as a palette-based PNG with 2 colors. As far as
I know the PNG format allows lossless run-length encoding
2 matches
Mail list logo