Searched refs:aspRatio (Results 1 – 2 of 2) sorted by relevance
455 float aspRatio = (float) origWidth / (float) origHeight; in getMaxWidth() local456 int newHeight = (int) Math.sqrt(maxNumPixels / aspRatio); in getMaxWidth()457 return (int) (newHeight * aspRatio); in getMaxWidth()461 float aspRatio = (float) origWidth / (float) origHeight; in getMaxHeight() local462 return (int) Math.sqrt(maxNumPixels / aspRatio); in getMaxHeight()
415 float aspRatio = (float) bitmap.getWidth() / (float) bitmap.getHeight(); in fixMaxBitmapSize() local416 int newHeight = (int) Math.sqrt(maxNumPixels / aspRatio); in fixMaxBitmapSize()417 int newWidth = (int) (newHeight * aspRatio); in fixMaxBitmapSize()