DECOM preSS使用zlib的PNG [英] Decompress PNG using zlib
问题描述
我如何使用zlib库DECOM preSS的PNG文件?我需要使用C下gcc编译器读取PNG文件。
How can I use zlib library to decompress a PNG file? I need to read a PNG file using a C under gcc compiler.
推荐答案
我有code一旦一个基本的Java库,用于读/写PNG文件:的 HTTP://$c$c.google.com/p/pngj/
I've code once a basic Java library for reading/writing PNG files: http://code.google.com/p/pngj/
它不支持palleted图像,但除此之外 [更新:它支持现在所有的PNG变种]这是相当完整的,简单,code没有外部的依赖关系(即它仅使用标准JSE API,其中包括拉链DECOM pression)。而code是可用的。我想你可以用它没费多大劲端口到C
It does not support palleted images but apart from that[Updated: it supports all PNG variants now] it's fairly complete, simple and the code has no external dependencies (i.e. it only uses the standard JSE API, which includes zip decompression). And the code is available. I guess you could port it to C with not much effort.
这篇关于DECOM preSS使用zlib的PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!