Loading docs/html/training/displaying-bitmaps/load-bitmap.jd +2 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,8 @@ public static int calculateInSampleSize( // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) { while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { inSampleSize *= 2; } } Loading Loading
docs/html/training/displaying-bitmaps/load-bitmap.jd +2 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,8 @@ public static int calculateInSampleSize( // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) { while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { inSampleSize *= 2; } } Loading