Add transparency threshold on pushImage() function #2915
Unanswered
matthieuweber
asked this question in
New processor/display support or capability request
Replies: 1 comment 2 replies
-
Can you decribe an example scenario where this is useful. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
As a new feature suggestion I tried to modify the pushImage() function to be able to set a transparency threshold.
It works :)
I just changed the line :
if (transp != *ptr)
with :
if (transp < *ptr) // Enable transparent color threshold
Then I defined a global variable :
int Transparency_th = 0; // Transparency threshold
(Transparency_th could be a class variable)
Eventually, I defined my custom tft_output like this :
Usage :
The modified pushImage function
Beta Was this translation helpful? Give feedback.
All reactions