Closed AASM-SA closed 5 years ago
I think the black background is shown by your phone gallery app, it doesn't know what to do with the transparency so it just shows black. Send the picture to a computer to see how it really looks.
actually i sent the image in whatsApp and the black background still there
I see. What android version do you have? so i can make some tests
Android 8.1.0, API 27
@AASM-SA Did you make it work?
yes, I just wrote this line before saving the image:
imageView.setBackgroundResource(0);
and I wrote these two lines when saving the image:
BufferedOutputStream bos = new BufferedOutputStream(fileOutputStream); bm.compress(Bitmap.CompressFormat.PNG, quality, bos);
When I save the image that background of it has been deleted. The image appears in the gallery with a black background instead of a transparent background.
Before deleting the background: After deleting the background: The image in the gallary: