4 {
12 }
13 }
15 return bm;
16}
17
20 1, 0, 0, 0, 0,
21 0, 1, 0, 0, 0,
22 0, 0, 0.5, 0.5, 0,
23 0, 0, 0.5, 0.5, 0};
25}
26
31
35
36 paint.setColorFilter(
nullptr);
39
42
43 paint.setMaskFilter(
nullptr);
45}
46}
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorCYAN
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
static SkBitmap make_alpha_image(int w, int h)
static sk_sp< SkColorFilter > make_color_filter()
void allocPixels(const SkImageInfo &info, size_t rowBytes)
void eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const
sk_sp< SkImage > asImage() const
uint8_t * getAddr8(int x, int y) const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
SkSamplingOptions sampling
static SkImageInfo MakeA8(int width, int height)