Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Paint_setStyle |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Paint_setStyle.cpp.
4 {
7 paint.setStrokeWidth(5);
13 uint8_t pixels[50][50];
14 for (
int x = 0;
x < 50; ++
x) {
15 for (
int y = 0;
y < 50; ++
y) {
16 pixels[
y][
x] = (
x +
y) % 5 ? 0xFF : 0x00;
17 }
18 }
23 paint.setStyle(style);
29 }
30}
31}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawRegion(const SkRegion ®ion, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kUnion_Op
target unioned with operand
bool op(const SkIRect &rect, Op op)
ClipOpAndAA opAA SkRegion region
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeA8(int width, int height)