@@ -0,0 +1,1009 @@
+/*%0A * BitmapUtils.java%0A *%0A * Author: Ming Tsang%0A * Copyright (c) 2015 Ming Tsang%0A * Refer to LICENSE for details%0A */%0A%0Apackage com.nkming.utils.graphic;%0A%0Aimport android.graphics.BitmapFactory;%0A%0Aimport com.nkming.utils.Log;%0Aimport com.nkming.utils.Res;%0Aimport com.nkming.utils.type.Size;%0A%0Apublic class BitmapUtils%0A%7B%0A%09/**%0A%09 * Return the size of a bitmap without loading the whole file%0A%09 *%0A%09 * @param path%0A%09 * @return%0A%09 */%0A    public static Size getSize(String path)%0A    %7B%0A        BitmapFactory.Options options = new BitmapFactory.Options();%0A        options.inJustDecodeBounds = true;%0A%0A        BitmapFactory.decodeFile(path, options);%0A        if (options.outWidth == -1 %7C%7C options.outHeight == -1)%0A        %7B%0A%09        Log.e(LOG_TAG + %22.getSize%22, %22Failed while decodeFile%22);%0A            return null;%0A        %7D%0A        else%0A        %7B%0A            return new Size(options.outWidth, options.outHeight);%0A        %7D%0A    %7D%0A%0A%09private static final String LOG_TAG = Res.LOG_TAG + %22.%22%0A%09%09%09+ BitmapUtils.class.getSimpleName();%0A%7D%0A

Add fn to get size of a bitmap without loading