Example usage for android.graphics BitmapFactory decodeByteArray

List of usage examples for android.graphics BitmapFactory decodeByteArray

Introduction

In this page you can find the example usage for android.graphics BitmapFactory decodeByteArray.

Prototype

public static Bitmap decodeByteArray(byte[] data, int offset, int length) 

Source Link

Document

Decode an immutable bitmap from the specified byte array.

Usage

From source file:Main.java

public static Bitmap Bytes2Bitamp(byte[] b) {
    if (b.length != 0) {
        return BitmapFactory.decodeByteArray(b, 0, b.length);
    } else {//from  www .  ja  v  a 2s .  co m
        return null;
    }
}

From source file:Main.java

public static Bitmap byteToBitmap(byte[] data) {
    return BitmapFactory.decodeByteArray(data, 0, data.length);
}

From source file:Main.java

public static Bitmap bytes2Bitmap(byte[] b) {
    if (b.length != 0) {
        return BitmapFactory.decodeByteArray(b, 0, b.length);
    }/*from  w  w w .j  a va  2 s . c om*/

    return null;
}

From source file:Main.java

public static Bitmap Bytes2Bitmap(byte[] b) {
    if (b.length != 0) {
        return BitmapFactory.decodeByteArray(b, 0, b.length);
    } else {/*ww w  . j  av  a  2  s  . c  om*/
        return null;
    }
}

From source file:Main.java

public static Bitmap bytesToBitmap(byte[] bytes) {
    if (bytes.length > 0) {
        return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
    }//from w ww  .  j a  v  a  2  s.  c  om
    return null;
}

From source file:Main.java

/**
 * data to bitmap
 */
public static Bitmap dataToBitmap(byte[] data) {
    return BitmapFactory.decodeByteArray(data, 0, data.length);
}

From source file:Main.java

public static Bitmap byteArrayToBitmap(byte[] b) {
    return BitmapFactory.decodeByteArray(b, 0, b.length);
}

From source file:Main.java

public static Bitmap convertBytesToBitmap(byte[] bytes) {
    byte[] blob = bytes;
    Bitmap bmp = BitmapFactory.decodeByteArray(blob, 0, blob.length);
    return bmp;//from w ww  .ja v a2 s . c  o  m
}

From source file:Main.java

public static Bitmap byteToBitmap(byte[] data) {
    if (data.length != 0) {
        return BitmapFactory.decodeByteArray(data, 0, data.length);
    }/*from ww  w  .ja  v a2s  .c o m*/
    return null;
}

From source file:Main.java

public static Bitmap Bytes2Bimap(byte[] bytes) {
    if (bytes.length != 0) {
        return BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
    }/*ww  w  .j av a  2s . co m*/
    return null;
}