/** * 保存方法 */ public void saveBitmap(Bitmap bitmap) { Long time = System.currentTimeMillis(); File f = new File(Environment.getExternalStorageDirectory() + "/maketion/"+String.valueOf(time)+".png"); picturePath = f.getPath(); if (f.exists()) { f.delete(); } try { FileOutputStream out = new FileOutputStream(f); bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out); out.flush(); out.close();
图片流,bitmap保存
最新推荐文章于 2024-05-23 14:34:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)