Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Paint_setMaskFilter.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4// HASH=a993831c40f3e134f809134e3b74e4a6
5REG_FIDDLE(Paint_setMaskFilter, 256, 256, false, 0) {
6void draw(SkCanvas* canvas) {
9 paint.setStrokeWidth(10);
11 canvas->drawRect(SkRect::MakeXYWH(40, 40, 175, 175), paint);
12}
13} // END FIDDLE
@ kNormal_SkBlurStyle
fuzzy inside and outside
Definition SkBlurTypes.h:12
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
@ kStroke_Style
set to stroke geometry
Definition SkPaint.h:194
const Paint & paint
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Definition SkRect.h:659