Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Matrix_invert |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Matrix_invert.cpp.
5 {
7 const SkPoint src[] = { { 10, 120}, {120, 120}, {120, 10}, { 10, 10} };
8 const SkPoint dst[] = { {150, 120}, {200, 100}, {240, 30}, { 130, 40} };
10 paint.setAntiAlias(
true);
12 matrix.setPolyToPoly(src, dst, 4);
16 paint.setStrokeWidth(3);
19 if (
matrix.invert(&matrix)) {
22 }
23}
24}
constexpr SkColor SK_ColorBLUE
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
@ kPoints_PointMode
draw each point separately
unsigned useCenter Optional< SkMatrix > matrix