Home
last modified time | relevance | path

Searched refs:cropHeight (Results 1 – 3 of 3) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java208 int cropHeight = original.getHeight(); in getNormalizedBitmap() local
211 if (forceCropToSquare && cropWidth != cropHeight) { in getNormalizedBitmap()
213 if (cropHeight > cropWidth) { in getNormalizedBitmap()
214 cropTop = (cropHeight - cropWidth) / 2; in getNormalizedBitmap()
215 cropHeight = cropWidth; in getNormalizedBitmap()
217 cropLeft = (cropWidth - cropHeight) / 2; in getNormalizedBitmap()
218 cropWidth = cropHeight; in getNormalizedBitmap()
222 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap()
226 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap()
239 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop() local
178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop()
179 int cropBottom = cropTop + cropHeight; in getLargestCenterCrop()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java479 int cropHeight = cropWidth;
483 cropHeight = cropWidth * mAspectY / mAspectX;
485 cropWidth = cropHeight * mAspectX / mAspectY;
490 int y = (height - cropHeight) / 2;
492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);