Android处理Bitmap的一些方法
# 文件与Bitmap间的方法 1. 从文件载入Bitmap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 /** * @brief 从文件载入Bitmap * @param path 图片路径 * @param opts 选项 * @return Bitmap */ public Bitmap loadFromFile(String path, Options opts) { try { File f = new File(path); if (!f.exists() || f.isDirectory()) { return null ; } Bitmap bm = BitmapFactory.decodeFile(path, opts); return bm; } catch (Exception e) { return null ; } } /** * @brief 从文件载入Bitmap * @param path 图片路径 * @return Bit...

