Skip to content

Commit

Permalink
Changed saving of bitmaps to use png format in order to preserve tran…
Browse files Browse the repository at this point in the history
…sparency
  • Loading branch information
oxters168 committed Aug 27, 2023
1 parent 46b48e9 commit 093339a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public static void saveBitmapToFile(Bitmap bm, String path) {
createPathIfNotExist(path);
try {
FileOutputStream out = new FileOutputStream(path);
bm.compress(Bitmap.CompressFormat.JPEG, 100, out);
bm.compress(Bitmap.CompressFormat.PNG, 100, out);
out.flush();
out.close();
} catch(Exception e) { Log.e("AndroidHelpers", e.toString()); }
Expand Down

0 comments on commit 093339a

Please sign in to comment.