load Bitmap By Stream - Android Graphics

Android examples for Graphics:Bitmap Stream

Description

load Bitmap By Stream

Demo Code


//package com.java2s;

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

import android.graphics.Bitmap;

import android.graphics.BitmapFactory;

public class Main {
    public static Bitmap loadByStream(InputStream is) throws IOException {

        Bitmap bitmap = BitmapFactory.decodeStream(is);
        return bitmap;
    }/*from  w  w w.ja v a 2 s.c  om*/
}

Related Tutorials