Home | History | Annotate | Download | only in media

Lines Matching refs:targetHeight

66     public static Bitmap transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp) {
68 int deltaY = source.getHeight() - targetHeight;
76 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, Bitmap.Config.ARGB_8888);
82 + Math.min(targetHeight, source.getHeight()));
84 int dstY = (targetHeight - src.height()) / 2;
85 Rect dst = new Rect(dstX, dstY, targetWidth - dstX, targetHeight - dstY);
93 float viewAspect = (float) targetWidth / targetHeight;
96 float scale = targetHeight / bitmapHeightF;
120 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
122 Bitmap b2 = Bitmap.createBitmap(b1, dx1 / 2, dy1 / 2, targetWidth, targetHeight);