52 {
60
62
63 {
64 for (
size_t i = 0;
i < 4;
i++) {
76 std::move(tileInput)));
80 paint.setImageFilter(std::move(filter));
89 }
90 }
91 }
92
93 {
94 float matrix[20] = { 1, 0, 0, 0, 0,
95 0, 1, 0, 0, 0,
96 0, 0, 1, 0, 0,
97 0, 0, 0, 1, 0 };
98
105
117 }
118
119
120 {
122
128 nullptr,
129 &cropRect));
134 }
135 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkImageFilter > ColorFilter(sk_sp< SkColorFilter > cf, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static sk_sp< SkImageFilter > Image(sk_sp< SkImage > image, const SkRect &srcRect, const SkRect &dstRect, const SkSamplingOptions &sampling)
static sk_sp< SkImageFilter > Tile(const SkRect &src, const SkRect &dst, sk_sp< SkImageFilter > input)
void setStyle(Style style)
void setColor(SkColor color)
@ kStroke_Style
set to stroke geometry
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< const SkImage > image
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)