|
Forum Index : Microcontroller and PC projects : Best way to store and display 32x32 Icons..??
| Author | Message | ||||
| Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 772 |
Merry Christmas to all here at the Shed..! It's been quite some time since I last posted.. Been trying to keep up with all the awesome things happening... (nice)... I was thinking of using a 470 class & a 5" LCD to do an HMI for a project at work.. I want to use the same looking Icons the PC program has and was hoping to not have to use an SD card and keep loading the "BMP" versions of them back to the screen... I seem to remember of someone sending an image to the small B/W Nokia phone display using DATA statements... (pixel by pixel)... But, I wanted to see if was a way to store them in a "library" like we do with fonts... There could be 30-50 of them possibly to store... Also too, would it be doable to say do a BLIT write and store an image containing all the Icons, then BLIT from the buffer using any 32x32 section of the image and display it on the screen... But, the image would come from the SD card.. Much thanks gents for any feedback..! |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1046 |
There is something I wrote to display images stored in flash to the SSD1963 screen. I think your 32x32 icons would take about 2k of memory each to store if RGB565 color. 32*32=1024 pixels. 2 bytes per pixel is 2K for RGB565. (8bit) 20 icons is 40K, is a fair chunk of the available memory but OK if you found a way to store it without data statements. If Run Length Encoding (RLE) technique was used and you cut back on the color depth a bit is would be smaller (say 0.5K-1K each) so you might fit them into memory OK. This thread details what I have done, not used in anger by anyone as yet but may be of interest. It stores screen images into flash memory attached to the back of the SSD1963. The images use RLE for compression and load quite quickly. You would initially load the big picture with all 50 icons onto the screen from SDCard, then save them away as 32*32 pixel images to separate pages on the Flash memory. You then don't need the SDCard after this. The 32*32 images can then be recalled individually at anytime and place anywhere on the screen. Regards Gerry PS. Updated the numbers again. Edited 2020-12-30 14:04 by disco4now F4 H7FotSF4xGT |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |