Searched refs:byteStream (Results 1 – 1 of 1) sorted by relevance
416 ByteArrayOutputStream byteStream = null; in toAsset() local418 byteStream = new ByteArrayOutputStream(); in toAsset()419 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream); in toAsset()420 return Asset.createFromBytes(byteStream.toByteArray()); in toAsset()422 if (null != byteStream) { in toAsset()424 byteStream.close(); in toAsset()