Prev Previous Post   Next Post Next
Old 01-31-2011, 09:53 PM
Adhil Adhil is offline
Junior Member
Join Date: Jan 2011
Posts: 2
Default Loading Images in Lua

Hi Folks,

I am newbie to Lua.. My apologize if this forum is not a right place to ask about Lua 5.1 . I don't find any forums for Lua.

I am trying create a frame and load image as its background in Lua 5.1.

I noticed few sites showing 2 lines of code for loading aimage.
myimage = image.load("test.bmp");

But it throws error
lua: test.lua:1: attempt to index global 'image' (a nil value).

What .dll/module is used to load image in a frame?

Any help on this is would be appreciated.

Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 09:21 PM.