Go to the source code of this file.
◆ draw_image()
Definition at line 44 of file imageblurclampmode.cpp.
44 {
47 paint.setImageFilter(std::move(filter));
48
52}
void translate(SkScalar dx, SkScalar dy)
void clipIRect(const SkIRect &irect, SkClipOp op=SkClipOp::kIntersect)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
SkSamplingOptions(SkFilterMode::kLinear))
◆ make_image()
Definition at line 27 of file imageblurclampmode.cpp.
27 {
32 paint.setAntiAlias(
true);
33
40
41 return surface->makeImageSnapshot();
42}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static SkImageInfo MakeN32Premul(int width, int height)
static SkRect MakeIWH(int w, int h)