Android
Android 이미지 가로, 세로 길이를 가져오기 get Bitmap width & height
/** 이미지 가로 가져오기 **/ public static int getWidthHeightOfBitmap( 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 getHeightOfBitmap( String fileName ){ try { BitmapFactory.Options opti..
2013. 11. 2. 15:02