public static Bitmap openBinImg(String path){
//String selectedImage = Environment.getExternalStorageDirectory().toString() + "/" + seq;
//Log.d("selectedImage",""+selectedImage);
Bitmap bitmap = null;
File newFile = new File(path);
FileInputStream fis = null;
try {
fis = new FileInputStream(newFile);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
bitmap = BitmapFactory.decodeStream(fis);
return bitmap;
}
沒有留言:
張貼留言