bool has_transparency() const
ImageType get_type() const
const Color COLOR_OFF(0, 0, 0, 0)
Turn the pixel OFF.
const uint8_t * get_data_start() const
bool get_binary_pixel_(int x, int y) const
Color get_rgb_pixel_(int x, int y) const
Color get_pixel(int x, int y, Color color_on=display::COLOR_ON, Color color_off=display::COLOR_OFF) const
Color get_grayscale_pixel_(int x, int y) const
int get_width() const override
size_t get_width_stride() const
Return the stride of the image in bytes, that is, the distance in bytes between two consecutive rows ...
Color get_rgb565_pixel_(int x, int y) const
const uint8_t * data_start_
lv_img_dsc_t * get_lv_img_dsc()
const Color COLOR_ON(255, 255, 255, 255)
Turn the pixel ON.
Transparency transparency_
int get_height() const override
void draw(int x, int y, display::Display *display, Color color_on, Color color_off) override
Implementation of SPI Controller mode.
Image(const uint8_t *data_start, int width, int height, ImageType type, Transparency transparency)