Android InputStream to Bitmap Convert toBitmapDrawable(InputStream is)

Here you can find the source of toBitmapDrawable(InputStream is)

Description

to Bitmap Drawable

Declaration

public static BitmapDrawable toBitmapDrawable(InputStream is)
        throws IOException 

Method Source Code

//package com.java2s;

import java.io.IOException;
import java.io.InputStream;

import android.graphics.drawable.BitmapDrawable;

public class Main {

    public static BitmapDrawable toBitmapDrawable(InputStream is)
            throws IOException {
        BitmapDrawable bitmapDrawable = new BitmapDrawable(is);
        is.close();//from w w  w .ja  v a  2 s. c o m
        return bitmapDrawable;
    }
}

Related

  1. toBitmap(InputStream is)
  2. toBitmap(InputStream is)
  3. toBitmapDrawable(InputStream is)
  4. loadCompatibleImage(InputStream stream)