Go to the source code of this file.
|
| REG_FIDDLE (color_filter_vs_colorFilterImageFilter_saveLayer, 256, 128, false, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
color_filter_vs_colorFilterImageFilter_saveLayer |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file color_filter_vs_colorFilterImageFilter_saveLayer.cpp.
4 {
6 SkScalar colorMatrix[20] = {1.75, 0, 0, 0, 0,
7 0, 1.75, 0, 0, 0,
8 0, 0, 1.75, 0, 0,
9 0, 0, 0, 1, 0};
11}
12
15 paint.setColorFilter(saturate());
17
23}
24}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
static sk_sp< SkImageFilter > ColorFilter(sk_sp< SkColorFilter > cf, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
void setImageFilter(sk_sp< SkImageFilter > imageFilter)