flash version of pushImage with color map and transparency #883
-
I have created a program that converts an animated gif into PROGMEM data for use with pushImage w/ transparency flash version. I just saw the colormap version and was thinking of changing my program to use it as it would be way less data. However, I see there is no flash version of pushImage with color map. Is there a reason this was left out? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There are suitable functions here. As follows:
You would have to cast the pointer to a uint8_t* type to use them. Only 4 bits per pixel images have a colour map (palette). For a 4bpp colour set bpp8 to false and include a colour map. |
Beta Was this translation helpful? Give feedback.
-
P.S, there is a GIF decoder library here that works quite well and I added the TFT_eSPI example recently that may be of interest! |
Beta Was this translation helpful? Give feedback.
There are suitable functions here. As follows:
You would have to cast the pointer to a uint8_t* type to use them. On…