avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Storing B&W bitmap images into Flash : file format sugges


From: Daniel O'Connor
Subject: Re: [avr-chat] Storing B&W bitmap images into Flash : file format suggestion ?
Date: Sun, 10 Jan 2010 18:29:00 +1030
User-agent: KMail/1.9.10

On Sun, 10 Jan 2010, Vincent Trouilliez wrote:
> - What's the usual/easiest file format that people use, to store
> 1-bit (black and white) bitmap images/pictures ?

I just use a raw binary dump and wrote a small program to convert from 
PNG (because libpng had good docs :) to it.

This image is displayed for ~2 seconds when the device (pulsed 
transmitter) starts up.

I've attached the program.

If I had to generate a font table I would probably just make an image 
which contained each glyph in whatever order was most convenient and 
store that in flash.

Unless you're storing on some sort of "shared" medium (ie CF, SD card 
etc) then I don't really see the point of an image parser, you may as 
well do all the work on the PC and make the micro('s programmers) job 
easier :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: png2bmap.c
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]