News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Convert bitmap image to ascii
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: Convert bitmap image to ascii

So now, FLTK has some kind of embedded graphic format yes?
Where does the strange data for those images come from?
I've seen it in some scripts and it just confuses me.

It can use embedded pixmap (xpm) and bitmap (xbm) data, stored as Fl_Pixmap and Fl_Bitmap objects. I don't understand the bitmap data structure, probably less than you do. The xpm format is simple text, and it translates to FLTK pretty easily.
See here for the XPM image format:
An example of its use in FLTK:
In MurgaLua I've noticed that the comments, including /* XPM */, must be removed from xpm data.

The 2-color thing would probably be better served with Fl_Bitmap, but sorry I just haven't figured out what format the data must be.

I'm pretty sure there are other ways of creating and manipulating embedded image data in FLTK, but that's all I know.

This post was last modified: 01-13-2009 12:04 AM by mikshaw.

01-13-2009 12:01 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Convert bitmap image to ascii - iGame3D - 01-09-2009, 11:04 AM
RE: Convert bitmap image to ascii - mikshaw - 01-13-2009 12:01 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: