Go to the source code of this file.
◆ RESIZE_FACTOR
◆ make_gradient_circle()
Definition at line 36 of file imagefiltersscaled.cpp.
36 {
42 canvas->
clear(0x00000000);
50
51 return surface->makeImageSnapshot();
52}
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
void clear(SkColor color)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static float min(float r, float g, float b)
PODArray< SkColor > colors
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkPoint Make(float x, float y)