Pushing masked bitmap onto a sprite #2660
-
I have working code taken from the examples that will decode a PNG with transparency directly to the display using the following code
This works fine, but to remove flickering I would like to push this to a sprite which I am using as an offscreen buffer to build part of the display and then push that sprite to the display. Sort of with a "sprite.pushMaskedImage", but this doesn't seem to exist. Is this at all possible? When I push a masked image to the display it shows up fine, but pushing the masked image to the sprite just nothing is rendered. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That is not supported by the library, it is on the very long TODO list! However I have a sketch that does what you want: This contains a copy of the pushMaskedImage library function with minor changes write to a sprite (spr) instead of the TFT. |
Beta Was this translation helpful? Give feedback.
That is not supported by the library, it is on the very long TODO list!
However I have a sketch that does what you want:
Flash_transparent_PNG_to_sprite.zip
This contains a copy of the pushMaskedImage library function with minor changes write to a sprite (spr) instead of the TFT.