How to Scale/Rotate image from flash memory?

If you are using C files created using the image converter, and your SPI flash is directly addressable, I suggest modifying this line and adding a section attribute to place the bitmap data into SPI flash. This is the easiest solution but it only works if SPI flash can be addressed the same way as normal flash/RAM.

If flash is not directly addressable, you would have to:

  1. Manually store the bitmap data in SPI flash using whatever tool you have available.
  2. When you want to display an image, read the bitmap data from SPI flash into RAM.
  3. Fabricate this structure and set the data member to point to wherever the bitmap data is in RAM.