6 std::vector<int32_t> srcPixels;
8 for (
int y = 0;
y < 4; ++
y) {
9 for (
int x = 0;
x < 4; ++
x) {
16 canvas->
scale(.5f, .5f);
REG_FIDDLE(Bitmap_readPixels_2, 256, 256, false, 3)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY) const
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkImageInfo MakeN32Premul(int width, int height)