xietao Posted Friday at 10:14 AM Report Posted Friday at 10:14 AM I want to display an 18*18 png image, but I can't display it, and when I debug, I found that I need to apply 36k heap memory to decode using the png decoder, where sizesizeof(PNG_decode) requires 35k, and my image data only needs 154 bytes of memory. This situation makes my MCU unable to display png images, how can I fix it?
Joel Bodenmann Posted Friday at 03:40 PM Report Posted Friday at 03:40 PM If you only work with an 18x18 image, PNG is the wrong format to choose. For such as small image, you're better of using something like BMP or even the NATIVE format. PNG does have a minimum overhead of 34k. See the "RAM usage" section in the documentation: https://wiki.ugfx.io/index.php/Images#PNG
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now