2013年10月21日 星期一

讀檔產生圖片Bitmap


File storageDir = new File(
       Environment.getExternalStoragePublicDirectory(
           Environment.DIRECTORY_PICTURES
       ),
       "FitMi"
    );
File imageFile = new File(storageDir.getPath(), "test.jpg");
Bitmap bitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath());

沒有留言:

張貼留言