Imaging enhancement: Add rudimentary support for PNG image format, via AUI_IMAGE, IMAGE.SBR, AUI_CONTROL, //IMAGE, and XTREE. (Saving scanning images to PNG not yet supported, nor is the alpha channel, except in XTREE.)
File extension must be PNG or WMF. (The latter is a weird case; apparently in some cases WMF files may actually be PNG files.) Several new PNG- specific error status codes added to the AUI_IMAGE functions:
Error |
Description |
---|---|
-100 |
Unknown critical chunk |
-101 |
Not enough IDATs for image |
-102 |
Invalid IHDR chunk |
-103 |
Invalid bit depth in IHDR |
-104 |
Invalid color type in IHDR |
-105 |
Invalid color type/bit depth combo |
-106 |
Invalid interlace method in IHDR |
-107 |
Invalid compression method in IHDR |
-108 |
Invalid filter method in IHDR |
-109 |
Invalid image size in IHDR |
-110 |
Bad PNG signature |
-111 |
Bad CRC value |
-112 |
Extra data at end of file |
-113 |
Unexpected End Of File |
-114 |
Memory error |
-115 |
Decompression error |
-116 |
Compression error |
-117 |
Out of disk space |