public static Bitmap createScaledBitmap(Bitmap in, int newWidth, int newHeight) {
        try {
            return Bitmap.createScaledBitmap(
                    in, newWidth, newHeight, false);
        } catch (Exception e) {
            return in;
        }
    }
Created by guohao4 on 2017/10/24.
Email: Tornaco@163.com
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/BitmapUtil.java