Go to the source code of this file.
|
| REG_FIDDLE (Canvas_drawPicture_4, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawPicture_4 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawPicture_4.cpp.
4 {
13 recordingCanvas->
scale(1.2f, 1.4f);
14 }
18 for (auto alpha : { 70, 140, 210 } ) {
19 paint.setAlpha(alpha);
21 matrix.preTranslate(70, 70);
22 }
23}
24}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
void drawPicture(const SkPicture *picture)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
unsigned useCenter Optional< SkMatrix > matrix