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