38 wholeCanvas.
clear(0x00000000);
41 for (
int i = 0; i <
count; ++i) {
51 paint.setAntiAlias(
true);
54 paint.setStrokeWidth(kThickness);
76 for (
size_t i = 0; i < std::size(fTallBmps); ++i) {
84 canvas->
scale(1.3f, 1.3f);
85 for (
size_t i = 0; i < std::size(fTallBmps); ++i) {
89 int startItem = fTallBmps[i].fItemCnt - 10;
90 int itemHeight = bmp.
height() / fTallBmps[i].fItemCnt;
constexpr int SkToInt(S x)
static sk_sp< SkImage > make_bm()
sk_sp< SkImage > asImage() const
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void translate(SkScalar dx, SkScalar dy)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void clear(SkColor color)
void drawArc(const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void scale(SkScalar sx, SkScalar sy)
@ kStroke_Style
set to stroke geometry
void onOnceBeforeDraw() override
SkISize getISize() override
SkString getName() const override
void onDraw(SkCanvas *canvas) override
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkISize Make(int32_t w, int32_t h)
static SkRect Make(const SkISize &size)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)