问题描述
我正在使用Glide来获取图像作为字节数组
<div class="foo">When I mousedown/up on this</div>
<div class="foo">When I mousedown/up on this</div>
<div class="bar">Give/remove the 'baz' class to/from this</div>
<div class="bar">Give/remove the 'baz' class to/from this</div>
,它可以很好地处理带有背景的图像以及GIF。但是,当静态图像具有透明背景(.PNG)时,它将产生黑色背景,而不是保持其透明性。我知道您可以通过使用位图来避免此问题,但我想同时保留.PNG和.GIF文件。使用Glide加载字节数组时,是否可以保留透明背景?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)