Lines Matching refs:scale
141 * {@link #inScaled} to determine if and how to scale the bitmap before
333 * resources, which we pass to be able to scale the bitmap accordingly.
492 float scale = 1.0f;
498 scale = targetDensity / (float) density;
502 bm = nativeDecodeAsset(asset, outPadding, opts, true, scale);
519 float scale = 1.0f;
525 scale = targetDensity / (float) density;
529 bm = nativeDecodeStream(is, tempStorage, outPadding, opts, true, scale);
564 float scale = targetDensity / (float) density;
565 if (scale != 1.0f) {
567 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
568 (int) (bm.getHeight() * scale + 0.5f), true);
572 np = nativeScaleNinePatch(np, scale, outPadding);
578 newLb[i] = (int)((lb[i]*scale)+.5f);
652 Rect padding, Options opts, boolean applyScale, float scale);
657 boolean applyScale, float scale);
660 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad);