6 canvas->
scale(.5f, .5f);
8 for (
int x : { 0,
bounds.width() } ) {
9 for (
int y : { 0,
bounds.height() } ) {
REG_FIDDLE(Bitmap_bounds, 256, 64, false, 4)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkImage > asImage() const
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
Optional< SkRect > bounds