when i create Bitmap
Bitmap newBitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888);
and edit pixels with Alfa (1-255)
newBitmap.setPixel(0, 0, Color.argb(255, 50, 100, 250));
and save to png
final BitmapFactory.Options options = new BitmapFactory.Options();
options.inScaled = false;
FileOutputStream out = new FileOutputStream(photoFile);
newbitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
it work seccess.
But if i try save with Alfa=0
newBitmap.setPixel(0, 0, Color.argb(0, 50, 100, 250));
RGB value equals 0 too.
Why are RGB values lost if Alfa=0, when saving in png format? How to fix it?