비트맵 -> 바이트배열
1.Bitmap image; // 변환시킬 비트맵2.ByteArrayOutputStream stream = new ByteArrayOutputStream();3.image.compress(CompressFormat.JPEG , 100 , stream);4.byte[] b = stream.toByteArray();바이트배열 - > 비트맵
1.<p>byte[] imgBuf = data; // 변환시킬 바이트 배열2.Bitmap image = BitmapFactory.decodeByteArray( imgBuf , 0 , imgBuf.length);</p>
댓글 없음:
댓글 쓰기