【发布时间】:2013-11-28 09:45:09
【问题描述】:
我正在 android 中开发一个应用程序,它将捕获照片并存储在 sqlite 中。 图像大小为 70 kb,但我想以 35 kb 大小存储该图像。但我对此一无所知。我尝试了以下代码,但没有成功。
int photo_width = bm.getWidth();
int photo_height = bm.getHeight();
photo_width = 260;
photo_height = 260;
Bitmap photobitmap = Bitmap.createScaledBitmap(bm,
photo_width, photo_height, false);
【问题讨论】:
-
压缩你的位图对象..
标签: android