Go to the source code of this file.
|
| REG_FIDDLE (Canvas_drawPicture_3, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawPicture_3 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawPicture_3.cpp.
4 {
13 recordingCanvas->
scale(1.2f, 1.4f);
14 }
19 for (auto alpha : { 70, 140, 210 } ) {
20 paint.setAlpha(alpha);
22 matrix.preTranslate(70, 70);
23 }
24}
25}
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