Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Region_setRects |
, |
|
|
256 |
, |
|
|
70 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Region_setRects.cpp.
5 {
7 SkIRect rects[] = { {10, 10, 40, 40}, {20, 20, 50, 50}, {30, 30, 60, 60} };
12 for (auto add : rects) {
14 }
17}
18}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRegion(const SkRegion ®ion, const SkPaint &paint)
void translate(int dx, int dy)
@ kUnion_Op
target unioned with operand
bool setRects(const SkIRect rects[], int count)
bool op(const SkIRect &rect, Op op)
ClipOpAndAA opAA SkRegion region