4 {
6 uint32_t storage[2];
9 SkIRect topPixelBounds = {0, 0, 1, 1};
10 pixmap.erase({ 0.65f, 0.45f, 0.25f, 1 }, &topPixelBounds);
11 SkIRect bottomPixelBounds = {0, 1, 1, 2};
12 pixmap.erase({ 0.25f, 0.65f, 0.45f, 1 }, &bottomPixelBounds);
14 canvas->
scale(20, 20);
15 bitmap.installPixels(pixmap);
17}
18}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
static SkImageInfo MakeN32Premul(int width, int height)