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 
murgaLua color/image
Author Message
luaCoder
Junior Member
**


Posts: 3
Group: Registered
Joined: Nov 2011
Status: Offline
Reputation: 0
Post: #1
murgaLua color/image

Hi,

I have had some trouble loading images into my app and getting colors to properly show.


What I had after converting the script to lua for colors is:

Code:
object:color((Fl_Color)179);


That way I can't run it because it will error at the "179" part.

So I changed it to:

Code:
object:color((Fl_Color),179);


And it would run, only show everything black.


About images. What I have after converting is:

Code:
object:image(image_intel2GenCorei5);


But running it again it won't show it.

Also I was wondering, the .cxx file contains an array of the entire image. How does it do it after converting, because that part is gone of course?
And if I compile it into an exe, do I have to provide the image with the compiled exe?
Or does it compile the image inside/with the exe?
How does it work? Smile


Thanks.

11-10-2011 04:17 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
murgaLua color/image - luaCoder - 11-10-2011 04:17 AM
RE: murgaLua color/image - mikshaw - 11-10-2011, 06:15 AM
RE: murgaLua color/image - luaCoder - 11-10-2011, 01:11 PM
RE: murgaLua color/image - mikshaw - 11-10-2011, 04:17 PM
RE: murgaLua color/image - jpjacobs - 11-10-2011, 06:54 PM
RE: murgaLua color/image - luaCoder - 11-11-2011, 08:07 AM

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

Forum Jump: