e.java 文件源码

java
阅读 43 收藏 0 点赞 0 评论 0

项目:boohee_v5.6 作者:
public static Bitmap c(String str) {
    int i = 1;
    Options options = new Options();
    options.inJustDecodeBounds = true;
    options.inDither = false;
    options.inPurgeable = true;
    options.inInputShareable = true;
    options.inPreferredConfig = Config.RGB_565;
    BitmapFactory.decodeFile(str, options);
    if (options.outHeight > 200 || options.outWidth > 200) {
        i = Math.min(Math.round(((float) options.outHeight) / 200.0f), Math.round(((float)
                options.outWidth) / 200.0f));
    }
    options.inJustDecodeBounds = false;
    options.inSampleSize = i;
    return BitmapFactory.decodeFile(str, options).copy(Config.ARGB_8888, false);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号