Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Matrix_mapXY |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Matrix_mapXY.cpp.
5 {
8 paint.setAntiAlias(
true);
10 matrix.setRotate(60, 128, 128);
12 for (size_t i = 0; i < std::size(lines); ++i) {
14 matrix.mapXY(lines[i].fX, lines[i].fY, &pt);
16 }
19}
20}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
void concat(const SkMatrix &matrix)
@ kPolygon_PointMode
draw the array of points as a open polygon
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
unsigned useCenter Optional< SkMatrix > matrix