I take it that you mean in lua.
tryCode:ScreenBackground = screen
Hi Folks,
Is it possible to do a screen capture directly to a variable without first writing to the memory card? At the moment I do somehting along the lines of the following:
screen:save("tmp.png")
local ScreenBackground = Image.load("tmp.png")
Is it possible to do something like:
ScreenBackground = screen:save()
Thanks,
JC
I take it that you mean in lua.
tryCode:ScreenBackground = screen
Thanks for the reply,
Yes in Lua. I have tried this and I get the following error when I try and use the variable:
error: luaWidgets.lua:277: bad argument #2 to `blit' (Image expected, got table)
Is the actual image contained somewhere in the table ? Any ideas how I would access it ?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks