Is there any way to convert a android.graphics.Bitmap instance into jpeg in android?
The current file format used by your Android device is displayed under the Screenshot format entry. To change it, tap on it. To change the screenshot format on your Android to JPG or PNG, tap on the file type you want to use from the dropdown menu.
To save the bitmap to Android storage, you could create a FileStream object with the path and then call the Bitmap. Compress method to generate the picture. Check the code: var folder = Android.
Try with compress method like:
bitmap.compress(Bitmap.CompressFormat.JPEG, quality, outStream);
Here is a sample program : compressing-a-bitmap-to-jpg-format-android-example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With