Hello,
I tried posting this question without success. I have reformatted the question in clearer terms. I hope someone can help with some insight ... here it goes:
I have a question about resizing graphics loaded from an external flash memory while in runtime. Here's the issue.
I have my own graphics library which is able to retrieve text, icons or pictures from an 8MEG flash and display them on either a 1.5 " or 2.0" color LCD. Here's the thing though, when I am using the 1.5" LCD and I display an icon it has to be a certain size. However if I display that same icon on the 2.0" LCD, it has to be slightly bigger. The reason why I need both sizes at any given time is because my project requires that I allow the user to disconnect the 1.5" LCD and reconnect the 2.0" (or vice versa) while the MCU is running. My question is, for us embedded guys that are using PICS with limited memory what are our options to resize graphics only using an MCU and on the fly.
Right now I am stuck in storing that same text, icons and pictures in two different sizes in flash actually wasting flash memory.
The option I am looking for would be to store the text, icons or pictures in flash once as the biggest size only. Then when I want to display a text, icon or picture I would load it into the MCU and according to the size that I require I would reduce it (Palletize and resize) in respect to the current LCD I am hooked up to and then display it. Here's the catch though... I need to do this all in run time.
So, what I am asking is, is there code done in C that I can include in my C project source files which would have the capability to paletize and resize graphics in the MCU at runtime. I know there are utilities out there that can resize fonts and pictures... but I need a piece of code that does this rather than a PC utility app.
All feedback is very appreciated.
Rob
I tried posting this question without success. I have reformatted the question in clearer terms. I hope someone can help with some insight ... here it goes:
I have a question about resizing graphics loaded from an external flash memory while in runtime. Here's the issue.
I have my own graphics library which is able to retrieve text, icons or pictures from an 8MEG flash and display them on either a 1.5 " or 2.0" color LCD. Here's the thing though, when I am using the 1.5" LCD and I display an icon it has to be a certain size. However if I display that same icon on the 2.0" LCD, it has to be slightly bigger. The reason why I need both sizes at any given time is because my project requires that I allow the user to disconnect the 1.5" LCD and reconnect the 2.0" (or vice versa) while the MCU is running. My question is, for us embedded guys that are using PICS with limited memory what are our options to resize graphics only using an MCU and on the fly.
Right now I am stuck in storing that same text, icons and pictures in two different sizes in flash actually wasting flash memory.
The option I am looking for would be to store the text, icons or pictures in flash once as the biggest size only. Then when I want to display a text, icon or picture I would load it into the MCU and according to the size that I require I would reduce it (Palletize and resize) in respect to the current LCD I am hooked up to and then display it. Here's the catch though... I need to do this all in run time.
So, what I am asking is, is there code done in C that I can include in my C project source files which would have the capability to paletize and resize graphics in the MCU at runtime. I know there are utilities out there that can resize fonts and pictures... but I need a piece of code that does this rather than a PC utility app.
All feedback is very appreciated.
Rob
Last edited: