Android Bitmap to Drawable Convert BitmapToDrawable(final Bitmap bitmap)

Here you can find the source of BitmapToDrawable(final Bitmap bitmap)

Description

Bitmap To Drawable

License

Apache License

Declaration

public static Drawable BitmapToDrawable(final Bitmap bitmap) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import android.graphics.Bitmap;

import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;

public class Main {
    public static Drawable BitmapToDrawable(final Bitmap bitmap) {
        BitmapDrawable bd = new BitmapDrawable(bitmap);
        return bd;
    }/*from   ww  w.ja  va2 s .com*/
}

Related

  1. bitmap2Drawable(Bitmap bitmap)
  2. from(Bitmap bitmap)
  3. bitmapToDrawable(Bitmap bitmap)
  4. bitmapToTransitionDrawable( Bitmap bitmap)
  5. geRoundDrawableFromUrl(String url, int pixels)
  6. bgColorDrawableSelector(Bitmap nomal, Bitmap focus)