Home | History | Annotate | Download | only in managedprovisioning

Lines Matching defs:bitmap

21 import android.graphics.Bitmap;
63 Bitmap bitmap = null;
67 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight);
68 if (bitmap == null) {
74 if (bitmap == null) {
75 bitmap = BitmapFactory.decodeResource(context.getResources(),
79 resizeBitmap(bitmap, maxWidth, maxHeight));
83 * Decodes a bitmap from an input stream.
84 * If the actual dimensions of the bitmap are larger than the desired ones, will try to return a
91 static Bitmap getBitmapPartiallyResized(String filePath, int maxDesiredWidth,
101 // Decodes a smaller bitmap. Note that this ratio will be rounded down to the nearest
102 // power of 2. The decoded bitmap will not have the expected size, but we'll do another
107 // Now, decode the actual bitmap
112 * Returns a new Bitmap with the specified maximum width and height. Does scaling if
116 static Bitmap resizeBitmap(Bitmap bitmap, int maxWidth, int maxHeight) {
117 int width = bitmap.getWidth();
118 int height = bitmap.getHeight();
124 bitmap = Bitmap.createScaledBitmap(bitmap, width, height, false);
126 return bitmap;