python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why are RGB values lost if Alfa=0, when saving in png format?
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 p...

Chego
Votes: 0
Answers: 1
Method to decode partial JPEG byte array in Android
I'm working on an Android app where I have a byte array of a JPEG image and need to display it. Currently, I'm decoding it in Android with this code:
Bitmap bitmap = BitmapFactory.decodeByteArray(ima...

gfrung4
Votes: 0
Answers: 0
How to determine if BitmapFactory.decodeStream has finished decoding the image from a socket InputStream?
I'm developing an Android app that receives an image via BluetoothSocket and I'm trying to retrieve its Bitmap by using the BitmapFactory.decodeStream() method, so something like:
// Create BluetoothS...
galligio
Votes: 0
Answers: 2