Help wanted: pushing png to sprite #2418
Replies: 4 comments
-
The pushMaskedImage() function can only be used to push images to the TFT. PNG images can be pushed to a sprite and this works for me so I assume there is an error in your sketch. |
Beta Was this translation helpful? Give feedback.
-
@Bodmer this is a code I am using:
Also tried to change color depth of a sprite to 1 bit, didn't help. |
Beta Was this translation helpful? Give feedback.
-
I have created the example below and it is working fine. I suspect the sketch in your application is much more complex and that the memory available is insufficient for the PNGDEC library to run correctly. |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks for the help. I figured out that the culprit was the function that used the same sprite object and was called before |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've adapted example code to show png file from LittleFS on M5Stack core. Now I want to push said image to sprite for further manipulations, but it doesn't work, sprite ends up filled with lines like a bar code (sorta). First I tried
pushMaskedImage
that hanged completely, now I simply try topushImage
to sprite, but something seems wrong. Tried creating smaller sprite, result is the same.IDE PlatformIO, TFT_eSPI v.2.5.21
Beta Was this translation helpful? Give feedback.
All reactions