Farha Ansari Farha Ansari - 1 year ago 193
Android Question

How to convert a Bitmap to Drawable in android?

How can I convert a Bitmap image to Drawable ?

Thanks,
Farha

Answer Source

Sounds like you want to use BitmapDrawable

From the documentation:

A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a BitmapDrawable from a file path, an input stream, through XML inflation, or from a Bitmap object.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download