Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_extractAlpha_2, 256, 160, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_extractAlpha_2 |
, |
|
|
256 |
, |
|
|
160 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_extractAlpha_2.cpp.
4 {
9 };
11 bitmap.allocN32Pixels(100, 100);
13 offscreen.clear(0);
15 paint.setAntiAlias(
true);
18 paint.setStrokeWidth(20);
19 offscreen.drawCircle(50, 50, 39,
paint);
26}
27}
static const SkScalar kBLUR_SIGMA_SCALE
@ kNormal_SkBlurStyle
fuzzy inside and 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 drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
@ kStroke_Style
set to stroke geometry