Go to the source code of this file.
|
| REG_FIDDLE (Matrix_mapPoints_2, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Matrix_mapPoints_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Matrix_mapPoints_2.cpp.
4 {
7 matrix.setRotate(35, 128, 128);
10 matrix.mapRectToQuad(pts, {40, 70, 180, 220} );
12 paint.setARGB(77, 23, 99, 154);
13 for (
int i = 0;
i < 5; ++
i) {
16 }
17}
18}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
@ kPolygon_PointMode
draw the array of points as a open polygon
unsigned useCenter Optional< SkMatrix > matrix