Viv*_*ldu 4 android image bitmap save webp
位图可以在android中转换或保存为webp格式吗?
我寻找那个,但结果证明对我来说是一个死胡同。
我需要将图像保存为webp格式,或者需要保存为PNG/JPEG,然后以编程方式转换为webp。
Nab*_*ari 8
您可以使用CompressFormat.WEBPWEBP 格式对任何位图进行编码。
CompressFormat.WEBP
例子:
FileOutputStream out = new FileOutputStream(path); bitmap.compress(Bitmap.CompressFormat.WEBP, 100, out); out.close();
归档时间:
7 年,5 月 前
查看次数:
5971 次
最近记录: