···128128}
129129130130void EpdRenderer::drawImage(const uint8_t bitmap[], const int x, const int y, const int width, const int height,
131131- const bool invert) const {
132132- display->drawImage(bitmap, x + marginLeft, y + marginTop, width, height, invert);
131131+ const bool invert, const bool mirrorY) const {
132132+ drawImageNoMargin(bitmap, x + marginLeft, y + marginTop, width, height, invert, mirrorY);
133133+}
134134+135135+void EpdRenderer::drawImageNoMargin(const uint8_t bitmap[], const int x, const int y, const int width, const int height,
136136+ const bool invert, const bool mirrorY) const {
137137+ display->drawImage(bitmap, x, y, width, height, invert, mirrorY);
133138}
134139135140void EpdRenderer::clearScreen(const bool black) const {
+4-1
lib/EpdRenderer/EpdRenderer.h
···3232 void fillRect(int x, int y, int width, int height, uint16_t color = 1) const;
3333 void drawCircle(int x, int y, int radius, uint16_t color = 1) const;
3434 void fillCircle(int x, int y, int radius, uint16_t color = 1) const;
3535- void drawImage(const uint8_t bitmap[], int x, int y, int width, int height, bool invert = false) const;
3535+ void drawImage(const uint8_t bitmap[], int x, int y, int width, int height, bool invert = false,
3636+ bool mirrorY = false) const;
3737+ void drawImageNoMargin(const uint8_t bitmap[], int x, int y, int width, int height, bool invert = false,
3838+ bool mirrorY = false) const;
3639 void clearScreen(bool black = false) const;
3740 void flushDisplay(bool partialUpdate = true) const;
3841 void flushArea(int x, int y, int width, int height) const;