Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / docs / examples / skbug_237_drawImageRect.cpp
1 // Copyright 2020 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(skbug_237_drawImageRect, 256, 256, false, 6) {
5 void draw(SkCanvas* canvas) {
6     SkPaint paint;
7     paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 20.0f, false));
8     canvas->clear(0xFF88FF88);
9     canvas->drawImageRect(image, SkRect{16, 16, 48, 48}, {64, 64, 192, 192}, SkSamplingOptions(),
10                           &paint, SkCanvas::kFast_SrcRectConstraint);
11 }
12 }  // END FIDDLE