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 
can we create images from text?
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
can we create images from text?

I keep looking at Erco's FLTK Cheat Page for inspiration, and try to convert some of this C++ stuff to MurgaLua. Lately I've been looking at this one example, wondering if it's possible for us:
I'm not so much interested in the draggable part as in the fact that he is defining a pixmap within his code. Is this possible in murgaLua? I've done a few tests, but so far have only gotten either an error (no Fl_Pixmap) or simply no image, but I'm wondering if maybe I'm just not using it right. I assume a pixmap and XBM/XPM are not terribly different, but I could be wrong of course.

I'm having trouble figuring if "static Fl_Pixmap G_cat(cat_xpm)" is pretty much the same as "G_cat=fltk:Fl_Pixmap(cat_xpm)", or if I need to do some table parsing, or if this just isn't going to work.

I think it would be awesome if we could define pixmaps like need for external image files.

07-30-2007 11:07 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
can we create images from text? - mikshaw - 07-30-2007 11:07 AM

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

Forum Jump: