olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.24k stars 313 forks source link

Grayshade bitmap for drawBitmap #444

Closed christophepersoz closed 7 years ago

christophepersoz commented 7 years ago

Hi Oliver,

Actually drawBitmap() draws in black and white (0/1) values. Do you think it can be possible to draw bitmap in gray shade on displays that support more color values ?

Thanks

olikraus commented 7 years ago

I have almost stopped development for u8glib and I will concentrate on u8g2. The only drawback is, I have stopped graylevel support completly to simplify the software architecture. So... i do not support this any more in u8glib and i will not support graylevel in u8g2 (although some minimal graylevel support might be thinkable).

christophepersoz commented 7 years ago

Too bad, I can understand that means heavier code. I will have a look on your code if there is a way to display a bitmap in grayscale or not. In my proper opinion, grayscale increase readability, and allow to focus on some parts of the display. So for my current app I will stay on U8Glib thought ;)

Thanks for your quick reply!

olikraus commented 7 years ago

You are the first person ever who had asked for graylevel support. I had assumed, that this is of almost no use. For my own projects I also never needed graylevel support.

christophepersoz commented 7 years ago

Funny. No prob. Gray levels allows to minimize the aliasing problem for example, particularly on bitmap logo ;)