From 8b198b4be836b4718cd3ce96e8ba8590697da45a Mon Sep 17 00:00:00 2001 From: mrwastl Date: Mon, 20 Jun 2011 23:13:54 +0200 Subject: opacity support for non-monochrome images --- glcdgraphics/bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glcdgraphics/bitmap.h') diff --git a/glcdgraphics/bitmap.h b/glcdgraphics/bitmap.h index f0e010e..8067cc3 100644 --- a/glcdgraphics/bitmap.h +++ b/glcdgraphics/bitmap.h @@ -119,7 +119,7 @@ public: void DrawRoundRectangle(int x1, int y1, int x2, int y2, uint32_t color, bool filled, int size); void DrawEllipse(int x1, int y1, int x2, int y2, uint32_t color, bool filled, int quadrants); void DrawSlope(int x1, int y1, int x2, int y2, uint32_t color, int type); - void DrawBitmap(int x, int y, const cBitmap & bitmap, uint32_t color = cColor::White, uint32_t bgcolor = cColor::Black); + void DrawBitmap(int x, int y, const cBitmap & bitmap, uint32_t color = cColor::White, uint32_t bgcolor = cColor::Black, int opacity = 255); int DrawText(int x, int y, int xmax, const std::string & text, const cFont * font, uint32_t color = cColor::White, uint32_t bgcolor = cColor::Black, bool proportional = true, int skipPixels = 0); int DrawCharacter(int x, int y, int xmax, uint32_t c, const cFont * font, -- cgit v1.2.3