5REG_FIDDLE(Bitmap_extractAlpha_3, 256, 128,
false, 0) {
8 bitmap.allocN32Pixels(100, 100);
12 paint.setAntiAlias(
true);
15 paint.setStrokeWidth(20);
@ kOuter_SkBlurStyle
nothing inside, fuzzy outside
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkImage > asImage() const
void clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
@ kStroke_Style
set to stroke geometry
#define REG_FIDDLE(NAME, W, H, TEXT, I)