class PainterRGB565Bitmap : public AbstractPainterRGB565
{
public:
PainterRGB565Bitmap(const Bitmap& bmp = Bitmap(BITMAP_INVALID), uint8_t alpha = 255);
void setBitmap(const Bitmap& bmp);
void setAlpha(uint8_t alpha);
uint8_t getAlpha() const;
virtual void render(uint8_t* ptr, int x, int xAdjust, int y, unsigned count, const uint8_t* covers);
protected:
virtual bool renderInit();
virtual bool renderNext(uint8_t& red, uint8_t& green, uint8_t& blue, uint8_t& alpha);
const uint32_t* bitmapARGB8888Pointer;
const uint16_t* bitmapRGB565Pointer;
const uint8_t* bitmapAlphaPointer;
Bitmap bitmap;
Rect bitmapRectToFrameBuffer;
uint8_t painterAlpha;
};