Searched refs:cropHeight (Results 1 – 4 of 4) sorted by relevance
201 int cropHeight = original.getHeight(); in getNormalizedBitmap() local204 if (forceCropToSquare && cropWidth != cropHeight) { in getNormalizedBitmap()206 if (cropHeight > cropWidth) { in getNormalizedBitmap()207 cropTop = (cropHeight - cropWidth) / 2; in getNormalizedBitmap()208 cropHeight = cropWidth; in getNormalizedBitmap()210 cropLeft = (cropWidth - cropHeight) / 2; in getNormalizedBitmap()211 cropWidth = cropHeight; in getNormalizedBitmap()215 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap()219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap()232 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop() local178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop()179 int cropBottom = cropTop + cropHeight; in getLargestCenterCrop()
479 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);
552 final int cropHeight; in getOpeningWindowAnimators()555 cropHeight = windowTargetBounds.height(); in getOpeningWindowAnimators()558 cropHeight = (int) mCroppedSize.value; in getOpeningWindowAnimators()560 crop.set(0, 0, cropWidth, cropHeight); in getOpeningWindowAnimators()564 float scaleY = height / cropHeight; in getOpeningWindowAnimators()568 float scaledCropHeight = cropHeight * scale; in getOpeningWindowAnimators()