Lines Matching refs:outWidth
451 * @param outWidth The width of the returned drawable
452 * @param outWidth The height of the returned drawable
461 public Drawable getBuiltInDrawable(int outWidth, int outHeight,
463 return getBuiltInDrawable(outWidth, outHeight, scaleToFit,
471 * @param outWidth The width of the returned drawable
472 * @param outWidth The height of the returned drawable
483 public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit,
506 if (outWidth <= 0 || outHeight <= 0) {
517 if (options.outWidth != 0 && options.outHeight != 0) {
518 inWidth = options.outWidth;
532 outWidth = Math.min(inWidth, outWidth);
535 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight,
538 float left = (inWidth - outWidth) * horizontalAlignment;
539 float right = left + outWidth;
553 int scaleDownSampleSize = Math.min(roundedTrueCrop.width() / outWidth,
598 if (outWidth > 0 && outHeight > 0 &&
599 (crop.getWidth() != outWidth || crop.getHeight() != outHeight)) {
602 RectF returnRect = new RectF(0, 0, outWidth, outHeight);
620 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight,
624 if (inWidth / (float) inHeight > outWidth / (float) outHeight) {
627 float cropWidth = outWidth * (inHeight / (float) outHeight);
633 float cropHeight = outHeight * (inWidth / (float) outWidth);