PyPNG is able to read and write PNG files with bit depth 1. But the rasters
for these images have to
be "flat". One sequence element per pixel (in the case of a 1-bit image each
element is either 0 or
1, but the other cases where bitdepth < 8 are similar).
It would be good to present and get raster data in a packed format that has 8
1-bit pixels per byte.
For one thing this format is often found inside other files and formats, so it
is a natural way of
getting at raster data sometimes.
Also, it can use less memory (which might be important for some applications).
It's also a format used internally by PyPNG (because it naturally arises out of
the PNG format), so
could be faster in some cases.
Original issue reported on code.google.com by d...@pobox.com on 24 Mar 2009 at 10:44
Original issue reported on code.google.com by
d...@pobox.com
on 24 Mar 2009 at 10:44