Definition at line 66 of file tallstretchedbitmaps.cpp.
◆ TallStretchedBitmapsGM()
TallStretchedBitmapsGM::TallStretchedBitmapsGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize TallStretchedBitmapsGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString TallStretchedBitmapsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void TallStretchedBitmapsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 83 of file tallstretchedbitmaps.cpp.
83 {
84 canvas->
scale(1.3f, 1.3f);
85 for (size_t i = 0; i < std::size(fTallBmps); ++i) {
88
89 int startItem = fTallBmps[i].fItemCnt - 10;
90 int itemHeight = bmp.
height() / fTallBmps[i].fItemCnt;
99 }
100 }
sk_sp< SkImage > asImage() const
void translate(SkScalar dx, SkScalar dy)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void scale(SkScalar sx, SkScalar sy)
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static SkRect Make(const SkISize &size)
static constexpr SkRect MakeWH(float w, float h)
◆ onOnceBeforeDraw()
void TallStretchedBitmapsGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 75 of file tallstretchedbitmaps.cpp.
75 {
76 for (size_t i = 0; i < std::size(fTallBmps); ++i) {
78
80 }
81 }
constexpr int SkToInt(S x)
static sk_sp< SkImage > make_bm()
◆ fBmp
◆ fItemCnt
int TallStretchedBitmapsGM::fItemCnt |
The documentation for this class was generated from the following file: