jeyhan / gifview

Automatically exported from code.google.com/p/gifview
0 stars 0 forks source link

GifDecoder不支持透明度 #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
如果gif图有半透明背景,会解析为黑色背景。
可以在setPixels方法中修改为    
if (!transparency) {
    c = lastBgColor;
}else{
    c=0x00000000;//设置背景色为透明
}

Original issue reported on code.google.com by sunchy1...@gmail.com on 2 Aug 2013 at 10:10