Get bitmap width and height without loading to memory

http://stackoverflow.com/questions/11681274/get-bitmap-width-and-height-without-loading-to-memory

BitmapFactory.Options bitmapOptions =newBitmapFactory.Options();
bitmapOptions.inJustDecodeBounds =true;BitmapFactory.decodeStream(inputStream,null, bitmapOptions);int imageWidth = bitmapOptions.outWidth;int imageHeight = bitmapOptions.outHeight;
inputStream.close();
arrow
arrow
    全站熱搜

    pcwiki 發表在 痞客邦 留言(0) 人氣()