Nov-18-2020, 12:53 PM
I’m using PIL / PILLOW under Python 3.8 with a 128 x 128 OLED display using LUMA.OLED.
I have created a status line and am displaying Glyphs (Icons) in this area which change based on a status (WiFi Strength, Battery Remaining, etc.).
The problem I am having is with the writing the new Glyph over the old... instead of PIL/Pillow completely over-writing the new Glyph over the old... when the new is written, the old can still be seen under it... so it is “compounding” the Glyphs as they are added.
Is there a setting/property that I am missing for this to properly update the character area? Such that the newest Glyph wins?
Clearing the entire screen is not an option... clearing the area under the Glyph will cause the new glyph to appear as flashing...
To me, PIL/Pillow should do some sort of “BIT AND” at the pixel level (for this memory location) such that the new font clears anything under it (where ever a pixel is false on the new glyph).
I’m new the Python but have 20+ years in Windows dev.
Any help is appreciated.
Thank you,
Chuck
I have created a status line and am displaying Glyphs (Icons) in this area which change based on a status (WiFi Strength, Battery Remaining, etc.).
The problem I am having is with the writing the new Glyph over the old... instead of PIL/Pillow completely over-writing the new Glyph over the old... when the new is written, the old can still be seen under it... so it is “compounding” the Glyphs as they are added.
Is there a setting/property that I am missing for this to properly update the character area? Such that the newest Glyph wins?
Clearing the entire screen is not an option... clearing the area under the Glyph will cause the new glyph to appear as flashing...
To me, PIL/Pillow should do some sort of “BIT AND” at the pixel level (for this memory location) such that the new font clears anything under it (where ever a pixel is false on the new glyph).
I’m new the Python but have 20+ years in Windows dev.
Any help is appreciated.
Thank you,
Chuck