Я попробовал следующие коды
Код: Выделить всё
Bitmap bmp;
bmp = BitmapFactory.decodeByteArray(data, 0, data.length);
Код: Выделить всё
ByteArrayInputStream bytes = new ByteArrayInputStream(data);
BitmapDrawable bmd = new BitmapDrawable(bytes);
bmp = bmd.getBitmap();
Код: Выделить всё
Canvas canvas = new Canvas(bmp);
Код: Выделить всё
java.lang.IllegalStateException: Immutable bitmap passed to Canvas constructor
Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/735 ... in-android
Мобильная версия