blob: 5820f012e29737c3a478f2caca21dae7e3dbe73e [file] [log] [blame]
Hal Canary83c2f702019-03-07 14:53:03 -05001// 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 "fiddle/examples.h"
4// HASH=69369cff2f5b145a6f616092513266a0
5REG_FIDDLE(Paint_034, 256, 256, false, 3) {
6void draw(SkCanvas* canvas) {
7 SkPaint paint;
8 canvas->scale(.2f, .2f);
9 for (SkFilterQuality q : { kNone_SkFilterQuality, kLow_SkFilterQuality,
10 kMedium_SkFilterQuality, kHigh_SkFilterQuality } ) {
11 paint.setFilterQuality(q);
12 canvas->drawImage(image.get(), 0, 0, &paint);
13 canvas->translate(550, 0);
14 if (kLow_SkFilterQuality == q) canvas->translate(-1100, 550);
15 }
16}
17} // END FIDDLE