13 inset.allocPixels(insetImageInfo);
REG_FIDDLE(ImageInfo_makeWH, 256, 144, false, 3)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
static SkRect inset(const SkRect &r)
SkImageInfo makeWH(int newWidth, int newHeight) const
static SkRect Make(const SkISize &size)
constexpr float height() const
constexpr float width() const