CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Display icon on LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MCU Luüfter



Joined: 13 Jun 2011
Posts: 6

View user's profile Send private message Send e-mail

Display icon on LCD
PostPosted: Mon Apr 30, 2012 4:11 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 30, 2012 5:32 pm     Reply with quote

This post might help. It explains how to display a BMP file on an LCD:
http://www.ccsinfo.com/forum/viewtopic.php?t=37200
MCU Luüfter



Joined: 13 Jun 2011
Posts: 6

View user's profile Send private message Send e-mail

PostPosted: Tue May 01, 2012 2:23 am     Reply with quote

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: 19544

View user's profile Send private message

PostPosted: Tue May 01, 2012 3:08 am     Reply with quote

.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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group