Lines Matching refs:bitmap
17 static void create_bitmap(SkBitmap* bitmap) {
20 bitmap->allocN32Pixels(W, H);
22 SkCanvas canvas(*bitmap);
44 SkBitmap bitmap;
45 create_bitmap(&bitmap);
46 int x = bitmap.width() / 2;
47 int y = bitmap.height() / 2;
51 canvas->drawBitmap(bitmap, 0, 0);
56 // Draw the bottom right fourth of the bitmap over the top left
58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
61 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y));
65 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height()));
67 canvas->translate(0, SkIntToScalar(bitmap.height() + 20));
71 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y));
72 canvas->translate(0, SkIntToScalar(bitmap.height() + 20));