Digole
Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
Protection
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
 
Forum : Digole Serial Display : Color OLED module :

 Search Forum.. 
 Creat New Topic   Reply 

Anyway to have a colored (solid) background when drawing text?

I would like to use a white background on the OLED display for one of my projects.

I can fill the screen prior to writing any text on the display, and when I write text I can use one of the modes as per the flashing inverted text example.  However if you change the text that is displayed the screen will will see the earlier drawn text behind the new text.  In order to cleanly draw the new text you have to draw a box with the background color first prior to drawing the new text.

 

Since there are no functions for determine the pixel sizes of the font used you need to guess at the sizes

It would be very nice to have the ability to set a background color when you draw text.

  

RE:Anyway to have a colored (solid) background when drawing text?

 Just answered your question on another topic, you can try AND and XOR mode

RE:Anyway to have a colored (solid) background when drawing text?

 The font's width and height are difference even in same size of font's structure, such 'A' is wider than 'l'.

Copyright Digole Digital Solutions, 2008-2017. All rights reserved.
Powered by Victor Sun