Lines Matching refs:bm
47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
48 if (bm == null || opts == null) {
49 return bm;
54 return bm;
57 bm.setDensity(density);
60 return bm;
63 byte[] np = bm.getNinePatchChunk();
69 final Bitmap oldBitmap = bm;
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
71 (int) (bm.getHeight() * scale + 0.5f), true);
76 bm.setNinePatchChunk(np);
78 bm.setDensity(targetDensity);
81 return bm;
96 Bitmap bm = null;
115 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), true /*isMutable*/,
120 bm.setNinePatchChunk(NinePatch_Delegate.serialize(chunk));
130 bm = Bitmap_Delegate.createBitmap(is, true, density);
136 return bm;