Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
skpaint_bitmap_shader.cpp
Go to the documentation of this file.
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.
4REG_FIDDLE(skpaint_bitmap_shader, 256, 256, false, 5) {
5void draw(SkCanvas* canvas) {
6 canvas->clear(SK_ColorWHITE);
7 SkMatrix matrix;
8 matrix.setScale(0.75f, 0.75f);
9 matrix.preRotate(30.0f);
12 SkSamplingOptions(), matrix));
13 canvas->drawPaint(paint);
14}
15} // END FIDDLE
constexpr SkColor SK_ColorWHITE
Definition SkColor.h:122
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawPaint(const SkPaint &paint)
void clear(SkColor color)
Definition SkCanvas.h:1199
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
Definition SkImage.cpp:179
const Paint & paint
sk_sp< SkImage > image
Definition examples.cpp:29
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60