Go to the source code of this file.
|
| REG_FIDDLE (skbug_237_drawImageRect, 256, 256, false, 6) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
skbug_237_drawImageRect |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
6 |
|
|
) |
| |
Definition at line 4 of file skbug_237_drawImageRect.cpp.
4 {
8 canvas->
clear(0xFF88FF88);
9 canvas->
drawImageRect(
image,
SkRect{16, 16, 48, 48}, {64, 64, 192, 192},
SkSamplingOptions(),
11}
12}
@ 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))