6 uint8_t pixels[][8] = {{0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00},
7 {0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00},
8 {0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00},
9 {0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0xFF},
10 {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
11 {0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00},
12 {0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00},
13 {0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00}};
@ kSolid_SkBlurStyle
solid inside, fuzzy outside
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
REG_FIDDLE(blurbug, 256, 256, false, 0)
void translate(SkScalar dx, SkScalar dy)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
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)
static SkImageInfo MakeA8(int width, int height)
static constexpr SkRect MakeWH(float w, float h)