Android: How shall I create Bitmap image bast on byte array? -
i have byte array want save bitmap image. should do? saw android.graphics.bitmap , found several methods don't know 1 suitable. createbitmap(int width, int height, bitmap.config config), example. have width , height how can give byte array?
thanks
check out methods in class bitmapfactory
, e.g. public static bitmap decodebytearray(byte[] data, int offset, int length)
.
offset should 0 , length should array.length
you.
Comments
Post a Comment