//너비
public static int getBitmapOfWidth( String fileName ){
try {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(fileName, options);
return options.outWidth;
} catch(Exception e) {
return 0;
}
}
//높이
public static int getBitmapOfHeight( String fileName ){
try {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(fileName, options);
return options.outHeight;
} catch(Exception e) {
return 0;
}
}