Lines Matching defs:bitmap
38 * This method takes a view and returns a single bitmap that is the layered combination
54 // Create a bitmap
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
57 // Create a canvas that wraps the bitmap
58 final Canvas canvas = new Canvas(bitmap);
89 // the topmost ancestor) and draw their backgrounds into our combined bitmap. At each step
102 return bitmap;
116 // Create a bitmap
117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight,
119 // Create a canvas that wraps the bitmap
120 Canvas canvas = new Canvas(bitmap);
125 // And ask the drawable to draw itself to the canvas / bitmap
129 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color,
132 bitmap.recycle();
137 * Checks whether all the pixels in the specified bitmap are of the same specified color.
144 public static void assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap,
149 bitmap.getPixels(rowPixels, 0, bitmapWidth, 0, row, bitmapWidth, 1);