4REG_FIDDLE(Canvas_drawImageNine_2, 256, 128,
false, 0) {
24 for (
auto dest: { 20, 30, 40, 60, 90 } ) {
REG_FIDDLE(Canvas_drawImageNine_2, 256, 128, false, 0)
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static SkScalar center(float pos0, float pos1)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawImageNine(const SkImage *image, const SkIRect ¢er, const SkRect &dst, SkFilterMode filter, const SkPaint *paint=nullptr)
void drawIRect(const SkIRect &rect, const SkPaint &paint)
sk_sp< const SkImage > image
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeWH(float w, float h)