Android Bitmap from Byte Array Create byteArrayToBitmap(byte[] b)

Here you can find the source of byteArrayToBitmap(byte[] b)

Description

byte Array To Bitmap

Declaration

public static Bitmap byteArrayToBitmap(byte[] b) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

import android.graphics.BitmapFactory;

public class Main {
    public static Bitmap byteArrayToBitmap(byte[] b) {
        return BitmapFactory.decodeByteArray(b, 0, b.length);
    }/*w  w w  . j a  v  a2s  .  com*/
}

Related

  1. bytes2Bitmap(byte[] b)
  2. createBinaryImage(int[][] source, int width, int height)
  3. createBitmapFromByteArray(byte[] data)
  4. makeBitmap(byte[] jpegData, int maxNumOfPixels)