Convert InputStream to Bitmap - Android Graphics

Android examples for Graphics:Bitmap Stream

Description

Convert InputStream to Bitmap

Demo Code


//package com.java2s;

import java.io.InputStream;

import android.graphics.Bitmap;

import android.graphics.BitmapFactory;

public class Main {

    public static Bitmap inputStream2Bitmap(InputStream is) {
        return BitmapFactory.decodeStream(is);
    }// w w w  .  j  av  a 2 s. c o  m
}

Related Tutorials