@@ -0,0 +1,787 @@
+package com.example.talk;%0A%0Aimport android.content.res.Resources;%0Aimport android.graphics.BitmapFactory;%0Aimport android.util.Log;%0A%0Apublic class LLBitmap %7B%0A%09%0A%09private static final String TAG = %22LLBitmap%22;%0A%09%0A%09/**%0A%09 * %0A%09 * @param res%0A%09 * @param resId%0A%09 */%0A%09public static void loadOptions(Resources res,int resId)%7B%0A%09%09BitmapFactory.Options options = new BitmapFactory.Options();%0A%09%09options.inJustDecodeBounds = true;%09// %E8%AE%BE%E7%BD%AE%E4%B8%BAtrue%E4%BC%9A%E8%BF%94%E5%9B%9Enull%E8%80%8C%E4%B8%8D%E6%98%AFBitmap%0A%09%09BitmapFactory.decodeResource(res, resId,options);%0A%09%09// %E8%AF%BB%E5%8F%96%E5%B1%9E%E6%80%A7%0A%09%09int resWidth = options.outWidth;%0A%09%09int resHeight = options.outHeight;%0A%09%09String imageType = options.outMimeType;%0A%09%09// %E8%AF%BB%E5%8F%96%E7%BB%93%E6%9D%9F%E5%90%8E%E8%A6%81%E5%88%87%E6%8D%A2%E5%9B%9E%E6%9D%A5%0A%09%09options.inJustDecodeBounds = false;%0A%09%09%0A%09%09Log.e(TAG, %22resWidth=%22+resWidth);%0A%09%09Log.e(TAG, %22resHeight=%22+resHeight);%0A%09%09Log.e(TAG, %22imageType=%22+imageType);%0A%09%7D%0A%7D%0A

add LLBitmap