| 发表于:2007-03-14 10:13:0817楼 得分:10 |
我刚刚试过了,先写入内存流,再输出的方法是可行的。如果这样都不可行,那真的没道理可讲了。 另外: png 's are a special case. their encoder requires a bi-directional stream. the solution is to stream to a memory stream first and write the contents of that memory stream to outputstream afterwards. when you get to caching (which i 've just implemented) you 'll be writing to a memory stream anyway just to cache the output, so this isn 't a big deal. as far as the gif end of things goes, the default palletization of the built in gif encoder leaves something to be desired. i 've built in support for an octree quantizer to deal with this. | | |
|