Try to search your question here, if you can't find : Ask Any Question Now ?

Android transparent images copied to gallery obtain solid black background

HomeCategory: stackoverflowAndroid transparent images copied to gallery obtain solid black background
Avatarsourav asked 4 months ago

I use the following statement to copy an image from the assets to the gallery app, which works fine:

MediaStore.Images.Media.insertImage(getContentResolver(), myBitmap, myTitle ,  myDescription);

The images are png-files with a transparent background. They are displayed correctly when I load them from the assets to, for example an ImageView.

The problem is, that the formerly transparent background of the imported images became solid black in the gallery.

The png is a png24 created by gimp. I also tried a transparent gif and a png with transparency added by Apple’s preview application with the same result.

Why it happens?

1 Answers
Best Answer
AvatarAmit answered 4 months ago
Your Answer

4 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com