Go to the source code of this file.
|
| REG_FIDDLE (skpaint_blur_mask_filter_2, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
skpaint_blur_mask_filter_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file skpaint_blur_mask_filter_2.cpp.
4 {
8 const uint8_t blurAlpha = 127;
11
12 const char text[] =
"Skia";
15
17
19 paint.setAntiAlias(
true);
20
22 blur.setColor(blurColor);
23 blur.setAlpha(blurAlpha);
25
27
28
30
31
33}
34}
@ kNormal_SkBlurStyle
fuzzy inside and outside
#define SkColorSetRGB(r, g, b)
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.