Top "Bitmapfactory" questions

A bitmap factory creates Bitmap objects from various sources, including files, streams, and byte-arrays.

Is there a way to set actionbar backgound by image in android?

I need to change background of the action bar to a customized image, but every time I try to use …

android background bitmap android-actionbar bitmapfactory
How to keep image quality same in BitmapFactory

I've converted an bitmap image into string to save it: ............ Bitmap photo = extras.getParcelable("data"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); photo.…

android bitmap bitmapfactory
BitmapFactory.decodeFile returns fileNotFoundException

I have a problem concerning the BitMapFactory.decodeFile. In my app, I want to user to be able to select …

android filenotfoundexception bitmapfactory
BitmapFactory.decodeStream from Assets returns null on Android 7

How to decode bitmaps from Asset directory in Android 7? My App is running well on Android versions up to Marshmallow. …

android bitmapfactory android-assets android-7.0-nougat
How can I specify the bitmap format (e.g. RGBA_8888) with BitmapFactory.decode*()?

I'm making several calls to BitmapFactory.decodeFile() and BitmapFactory.decodeResource(), and I'd like to specify the format the bitmaps are …

android bitmapfactory
BitmapFactory.decodeStream(InputStream is) returns null for non null InputStream on Android

I'm developing an Android application, and it's view is containing multiple Gallerys. The content of the Gallerys (the Bitmaps) are …

android gallery bitmapfactory
Bitmap allocation, using BitmapFactory.Options.inBitmap throws IllegalArgumentException

I get the next exception: Problem decoding into existing bitmap, when setting inBitmap to true; Caused by: java.lang.IllegalArgumentException: …

android bitmap garbage-collection bitmapfactory
Image from gallery rotates automatically - Android

In my android application i am loading image from device gallery.In that, i am facing issue regarding image orientation. …

android bitmap android-imageview bitmapfactory android-bitmap
BitmapFactory returns bigger image than source

Hi i am creating a Bitmap from an png image named image.png. The image has the dimension 75 (width) x 92 (…

android bitmapfactory
Resize image generated by BitmapFactory.decodeByteArray()

I am creating audio player,I want to show the song cover to the player, it working with small image …

android image-resizing bitmapfactory