Flutter Engine
The Flutter Engine
Functions
skpaint_blur_mask_filter.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (skpaint_blur_mask_filter, 256, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( skpaint_blur_mask_filter  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file skpaint_blur_mask_filter.cpp.

4 {
5void draw(SkCanvas* canvas) {
6 canvas->drawColor(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF));
9 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, 120));
10 canvas->drawTextBlob(blob.get(), 0, 160, paint);
11}
12} // END FIDDLE
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition: SkBlurTypes.h:12
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
Definition: SkColor.h:49
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
Definition: SkCanvas.h:1182
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
Definition: SkCanvas.cpp:2484
Definition: SkFont.h:35
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
static sk_sp< SkTextBlob > MakeFromString(const char *string, const SkFont &font, SkTextEncoding encoding=SkTextEncoding::kUTF8)
Definition: SkTextBlob.h:115
T * get() const
Definition: SkRefCnt.h:303
const Paint & paint
Definition: color_source.cc:38