mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-06-02 21:43:09 +01:00
wip
This commit is contained in:
@@ -122,4 +122,9 @@ public class BitmapUtil {
|
||||
return output;
|
||||
}
|
||||
|
||||
public static byte[] toByteArray(Bitmap bitmap) {
|
||||
ByteArrayOutputStream stream = new ByteArrayOutputStream();
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
|
||||
return stream.toByteArray();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user