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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -