Searched refs:cropWidth (Results 1 – 3 of 3) sorted by relevance
207 int cropWidth = original.getWidth(); in getNormalizedBitmap() local211 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()225 final int newWidth = (int) (cropWidth * scaleFactor); in getNormalizedBitmap()239 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
478 int cropWidth = Math.min(width, height) * 4 / 5;479 int cropHeight = cropWidth;483 cropHeight = cropWidth * mAspectY / mAspectX;485 cropWidth = cropHeight * mAspectX / mAspectY;489 int x = (width - cropWidth) / 2;492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
185 int cropWidth = area.height() * mWidth / mHeight; in getLargestCenterCrop() local186 int cropLeft = (area.width() - cropWidth) / 2; in getLargestCenterCrop()187 int cropRight = cropLeft + cropWidth; in getLargestCenterCrop()