load Bitmap By Bytes - Android Graphics

Android examples for Graphics:Bitmap Byte Array

Description

load Bitmap By Bytes

Demo Code


//package com.java2s;

import java.io.IOException;

import android.graphics.Bitmap;

import android.graphics.BitmapFactory;

public class Main {
    public static Bitmap loadByBytes(byte[] bytes) throws IOException {

        Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0,
                bytes.length);/*from   www.  j  a  v a 2  s  .c  om*/
        return bitmap;
    }
}

Related Tutorials