diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2013-08-18 16:08:02 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2013-08-26 06:40:34 +0930 |
commit | 8f466775c77b09a7114c688004317e6db05bcd3f (patch) | |
tree | 9c0c18373f8fe368f5f81c15b59bd2d67c29e7e2 /goo | |
parent | e53aec2c61ba42cf0635dc05f8e27e3503c1eaac (diff) |
Change PNGWriter monochrome format to be 8 pixels/byte
to be consistent with TiffWriter and NetPBMWriter
Diffstat (limited to 'goo')
-rw-r--r-- | goo/PNGWriter.cc | 4 | ||||
-rw-r--r-- | goo/PNGWriter.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/goo/PNGWriter.cc b/goo/PNGWriter.cc index b775600c..4370f288 100644 --- a/goo/PNGWriter.cc +++ b/goo/PNGWriter.cc @@ -147,10 +147,6 @@ bool PNGWriter::init(FILE *f, int width, int height, int hDPI, int vDPI) return false; } - // pack 1 pixel/byte rows into 8 pixels/byte - if (priv->format == MONOCHROME) - png_set_packing(priv->png_ptr); - return true; } diff --git a/goo/PNGWriter.h b/goo/PNGWriter.h index ac8f95a7..64b88332 100644 --- a/goo/PNGWriter.h +++ b/goo/PNGWriter.h @@ -31,7 +31,7 @@ public: /* RGB - 3 bytes/pixel * RGBA - 4 bytes/pixel * GRAY - 1 byte/pixel - * MONOCHROME - 1 byte/pixel. PNGWriter will bitpack to 8 pixels/byte + * MONOCHROME - 8 pixels/byte */ enum Format { RGB, RGBA, GRAY, MONOCHROME }; |