Top "Bitmapfactory" questions

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

Create a Bitmap/Drawable from file path

I'm trying to create a Bitmap or Drawable from existing file path. String path = intent.getStringExtra("FilePath"); BitmapFactory.Options option = …

java android android-drawable bitmapfactory
How to solve java.lang.OutOfMemoryError trouble in Android

Altough I have very small size image in drawable folder, I am getting this error from users. And I am …

android bitmap out-of-memory bitmapfactory setbackground
How can I print an image on a Bluetooth printer in Android?

I have to print some data on thermal bluetooth printer, I'm doing with this: String message="abcdef any message 12345"; byte[] …

java android bitmap bytearray bitmapfactory
Android: decodeFile always returns null for file in internal storage

I have a file saved locally into the application's private storage. I have verified it exists, however whenever I call …

android bitmapfactory
Get size of Bitmap Android

Possible Duplicate: Bitmap byte-size after decoding? Is there anyway so I can get the size of this Bitmap?I've tried …

android bitmap get size bitmapfactory
bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut) making image size bigger than original

I want to compress the image taken from a camera to png format to make them smaller in size, so …

android compression image-resizing bitmapfactory
Android how to scale an image with BitmapFactory Options

I want to decode an image from the SD card with BitmapFactory.decodeFile(path, options). I also want images that …

android bitmap decode decoding bitmapfactory
Displaying images from a specific folder on the SDCard using a gridview

I'm attempting to create a gridview that is loaded with images from a specific folder that resides on an SDCard. …

android gridview uri android-sdcard bitmapfactory
Saving canvas to bitmap on Android

I'm having some difficulty with regards to placing the contents of a Canvas into a Bitmap. When I attempt to …

java android android-canvas bitmapfactory
Android Color formats (RGB565, ARGB8888)

getHolder().setFormat(PixelFormat.RGBA_888); Options options = new BitmapFactory.Options(); options.inDither=true; options.inScaled = true; options.inPreferredConfig = Bitmap.Config.ARGB_8888; …

android bitmap rgb bitmapfactory argb