Android Bitmap to Drawable Convert bitmap2Drawable(Bitmap bitmap)

Here you can find the source of bitmap2Drawable(Bitmap bitmap)

Description

bitmap Drawable

Declaration

public static Drawable bitmap2Drawable(Bitmap bitmap) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

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

public class Main {
    public static Drawable bitmap2Drawable(Bitmap bitmap) {
        Drawable drawable = new BitmapDrawable(bitmap);
        return drawable;
    }//from  w  w  w  .ja  v a  2s.  c  o m
}

Related

  1. from(Bitmap bitmap)
  2. BitmapToDrawable(final Bitmap bitmap)
  3. bitmapToDrawable(Bitmap bitmap)
  4. bitmapToTransitionDrawable( Bitmap bitmap)