Lines Matching defs:bitmap
16 static void create_bitmap(SkBitmap* bitmap) {
19 bitmap->allocN32Pixels(W, H);
21 SkCanvas canvas(*bitmap);
43 SkBitmap bitmap;
44 create_bitmap(&bitmap);
45 int x = bitmap.width() / 2;
46 int y = bitmap.height() / 2;
50 canvas->drawBitmap(bitmap, 0, 0);
55 // Draw the bottom right fourth of the bitmap over the top left
57 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
60 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y));
64 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height()));
66 canvas->translate(0, SkIntToScalar(bitmap.height() + 20));
70 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y));
71 canvas->translate(0, SkIntToScalar(bitmap.height() + 20));