Go to the source code of this file.
|
| REG_FIDDLE (Region_translate_2, 256, 256, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Region_translate_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Region_translate_2.cpp.
5 {
8 SkIRect rects[] = {{40, 20, 50, 30}, {70, 40, 80, 50}, { 60, 10, 70, 20}};
9 test.setRects(rects, std::size(rects));
15 test.translate(10,
test.getBounds().fBottom, &second);
17 test.translate(30, 0);
18 }
19}
20}
constexpr SkColor SK_ColorMAGENTA
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRegion(const SkRegion ®ion, const SkPaint &paint)
@ kXOR_Op
target exclusive or with operand