Debian Codegraph @

docs/examples/Paint_getImageFilter.cpp

raw
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.
3 #include "tools/fiddle/examples.h"
4 REG_FIDDLE(Paint_getImageFilter, 256, 256, true, 0) {
5 #include "include/effects/SkImageFilters.h"
6
7 void draw(SkCanvas* canvas) {
8 SkPaint paint;
9 SkDebugf("nullptr %c= image filter\n", paint.getImageFilter() ? '!' : '=');
10 paint.setImageFilter(SkImageFilters::Blur(3, 3, nullptr, nullptr));
11 SkDebugf("nullptr %c= image filter\n", paint.getImageFilter() ? '!' : '=');
12 }
13 } // END FIDDLE