Go to the source code of this file.
|
| REG_FIDDLE (Matrix_mapVectors, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Matrix_mapVectors |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Matrix_mapVectors.cpp.
5 {
8 paint.setAntiAlias(
true);
12 const SkVector radii[] = {{8, 4}, {9, 1}, {6, 2}, {7, 3}};
13 for (int i = 0; i < 4; ++i) {
15 matrix.preScale(1.5f, 2.f);
16 matrix.mapVectors(rScaled, radii, std::size(radii));
21 }
22}
23}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
void setRectRadii(const SkRect &rect, const SkVector radii[4])
unsigned useCenter Optional< SkMatrix > matrix