View previous topic :: View next topic |
Author |
Message |
MCU Luüfter
Joined: 13 Jun 2011 Posts: 6
|
Display icon on LCD |
Posted: Mon Apr 30, 2012 4:11 pm |
|
|
Hi everyone,
I want to display an icon on my LCD but I didn't find some functions that handle ico files.
Is there a library that makes it easy.
PS: I want to display ico stored in SDCARD.
MCU Lüfter |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
MCU Luüfter
Joined: 13 Jun 2011 Posts: 6
|
|
Posted: Tue May 01, 2012 2:23 am |
|
|
Hi PCM programmer,
Thnak you for your reply but I am able to display the bmps on LCD and I want to understand how ico files are organized and if there is some ready-to-use library that handles it.
Thanks
MCU Lüfter |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Tue May 01, 2012 3:08 am |
|
|
.ICO files are (normally), .BMP files, without the bitmap header. Hence PCM Programmers answer is what you need.
I say 'normally', since in fact data can also be in PNG format, but this is rare unless the data comes from something like a Mac.
So, icons, _are_ bitmaps.
If you want to know the file format of a .ico file, a web search will find dozens of descriptions. I doubt if anyone has bothered to write any form of library for this, since in general it'll be simpler and quicker to just change the data into a raw binary format on the PC, and load this directly to the LCD at the PIC end. Doing as little as possible at the PIC, is always a good way to go....
Best Wishes |
|
|
|