4REG_FIDDLE(Canvas_drawPicture_3, 256, 256,
false, 0) {
13 recordingCanvas->
scale(1.2f, 1.4f);
19 for (
auto alpha : { 70, 140, 210 } ) {
20 paint.setAlpha(alpha);
22 matrix.preTranslate(70, 70);
REG_FIDDLE(Canvas_drawPicture_3, 256, 256, false, 0)
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