Searched refs:estimateCrop (Results 1 – 1 of 1) sorted by relevance
696 final Rect estimateCrop = new Rect(cropHint); in generateCrop() local697 estimateCrop.scale(1f / options.inSampleSize); in generateCrop()698 final float hRatio = (float) wpData.mHeight / estimateCrop.height(); in generateCrop()699 final int destHeight = (int) (estimateCrop.height() * hRatio); in generateCrop()700 final int destWidth = (int) (estimateCrop.width() * hRatio); in generateCrop()711 estimateCrop.set(cropHint); in generateCrop()712 estimateCrop.left += (cropHint.width() - newWidth) / 2; in generateCrop()713 estimateCrop.top += (cropHint.height() - newHeight) / 2; in generateCrop()714 estimateCrop.right = estimateCrop.left + newWidth; in generateCrop()715 estimateCrop.bottom = estimateCrop.top + newHeight; in generateCrop()[all …]