Definition at line 28 of file bmpfilterqualityrepeat.cpp.
◆ BmpFilterQualityRepeat()
BmpFilterQualityRepeat::BmpFilterQualityRepeat |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize BmpFilterQualityRepeat::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString BmpFilterQualityRepeat::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void BmpFilterQualityRepeat::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 53 of file bmpfilterqualityrepeat.cpp.
53 {
54 this->drawAll(canvas, 2.5f);
56 canvas->
scale(0.5, 0.5);
57 this->drawAll(canvas, 1);
58 }
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
◆ onOnceBeforeDraw()
void BmpFilterQualityRepeat::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 34 of file bmpfilterqualityrepeat.cpp.
34 {
40 canvas.drawImage(colorBmp.
asImage(), 0, 0);
42 canvas.drawImage(colorBmp.
asImage(), 20, 0);
44 canvas.drawImage(colorBmp.
asImage(), 0, 20);
46 canvas.drawImage(colorBmp.
asImage(), 20, 20);
47 }
sk_sp< SkImage > asImage() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
The documentation for this class was generated from the following file: