Lines Matching refs:scale
122 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));
123 if (drawable instanceof BitmapDrawable && scale == 1f) {
124 // return same bitmap if scale down not needed
127 int bitmapWidth = (int) (width * scale);
128 int bitmapHeight = (int) (height * scale);
160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
161 bitmapWidth *= scale;
162 bitmapHeight *= scale;
164 matrix.postScale(scale, scale);