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 android.graphics.drawable.BitmapDrawable;
import java.io.*;

public class Main {

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

Related

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