Example usage for android.graphics.drawable BitmapDrawable BitmapDrawable

List of usage examples for android.graphics.drawable BitmapDrawable BitmapDrawable

Introduction

In this page you can find the example usage for android.graphics.drawable BitmapDrawable BitmapDrawable.

Prototype

@Deprecated
public BitmapDrawable(java.io.InputStream is) 

Source Link

Document

Create a drawable by decoding a bitmap from the given input stream.

Usage

From source file:Main.java

public static Drawable bitmapToDrawable(Bitmap bitmap) {
    return new BitmapDrawable(bitmap);
}

From source file:Main.java

public static BitmapDrawable loadDrawable(String path) {
    return new BitmapDrawable(BitmapFactory.decodeFile(path));
}

From source file:Main.java

public static BitmapDrawable BitmapToDrawable(Bitmap paramBitmap) {
    return new BitmapDrawable(paramBitmap);
}

From source file:Main.java

public static Drawable bitmap2Drawable(Bitmap bmp) {
    return new BitmapDrawable(bmp);
}

From source file:Main.java

/** bitmap -> drawable */
public static BitmapDrawable bitmapToDrawable(Bitmap bitmap) {
    BitmapDrawable bd = new BitmapDrawable(bitmap);
    return bd;/*from w  ww  .  ja  v  a2 s .c om*/
}

From source file:Main.java

public static Drawable bitmap2Drawable(Bitmap bmp) {
    BitmapDrawable bd = new BitmapDrawable(bmp);
    return bd;
}

From source file:Main.java

public static Drawable bitmap2Drawable(Bitmap bitmap) {
    BitmapDrawable bd = new BitmapDrawable(bitmap);
    return bd;
}

From source file:Main.java

public static Drawable bitmap2Drawable(Bitmap bitmap) {
    Drawable drawable = new BitmapDrawable(bitmap);
    return drawable;
}

From source file:Main.java

public static Drawable bitmap2Drawable(Bitmap bitmap) {
    BitmapDrawable bitmapDrawable = new BitmapDrawable(bitmap);
    return bitmapDrawable;
}

From source file:Main.java

@SuppressWarnings("deprecation")
public static Drawable BitmapToDrawable(Bitmap bitmap) {
    Drawable BDrawable = new BitmapDrawable(bitmap);
    return BDrawable;
}