/** 保存方法 */
public void saveBitmap() {
Log.e(TAG, "保存图片");
File f = new File("/sdcard/namecard/", picName);
if (f.exists()) {
f.delete();
}
try {
FileOutputStream out = new FileOutputStream(f);
bm.compress(Bitmap.CompressFormat.PNG, 90, out);
out.flush();
out.close();
android 保存图片到指定文件
最新推荐文章于 2023-12-27 23:45:00 发布