4REG_FIDDLE(skbug_237_drawImageRect, 256, 256,
false, 6) {
8 canvas->
clear(0xFF88FF88);
9 canvas->
drawImageRect(
image,
SkRect{16, 16, 48, 48}, {64, 64, 192, 192},
SkSamplingOptions(),
@ kNormal_SkBlurStyle
fuzzy inside and outside
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kFast_SrcRectConstraint
sample outside bounds; faster
void clear(SkColor color)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
sk_sp< const SkImage > image
SkSamplingOptions(SkFilterMode::kLinear))
REG_FIDDLE(skbug_237_drawImageRect, 256, 256, false, 6)