Top "Android-bitmap" questions

A Java Object from android.

Android - ImageView: setImageBitmap VS setImageDrawable

What is the difference between setImageBitmap and setImageDrawable? I have an image which I would like to set dynamically from …

android imageview android-bitmap
Android- how can I convert android.net.Uri object to java.net.URI object?

I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This …

android uri android-bitmap fileinputstream
What is the difference between Bitmap and Drawable in Android?

I googled but i couldn't find any article to describe about the difference between Bitmap and Drawable in Android.

android android-drawable terminology android-bitmap
android get Bitmap or sound from assets

I need to get Bitmap and sound from assets. I try to do like this: BitmapFactory.decodeFile("file:///android_asset/…

android audio assets android-bitmap
Drawable to byte[]

I have an image from the web in an ImageView. It is very small (a favicon) and I'd like to …

android database drawable android-bitmap
How to load a Bitmap with Picasso without using an ImageView?

With ImageView, I can use the following code to download image with callback Picasso.with(activity).load(url).into(imageView, …

android android-imageview picasso android-bitmap
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

I have BitmapScalingHelper.java: public class BitmapScalingHelper { public static Bitmap decodeResource(Resources res, int resId, int dstWidth, int dstHeight) { Options …

android android-activity nullpointerexception android-bitmap
Using Glide to load bitmap into ImageView

How can i use Glide library to load Bitmap into my ImageView? I want to create a custom image with …

java android bitmap android-bitmap android-glide
How to use RoundedBitmapDrawable

Has anyone managed to use RoundedBitmapDrawable? Correct me if I'm wrong, but to my understanding, it makes a circular image …

android android-drawable android-bitmap
How to convert Image to PDF?

I am developing an application where I need to convert an Image to PDF. I tried something, but the issue …

android android-image android-bitmap android-pdf-api