Results 1 to 3 of 3

Thread: Screen Capture

                  
   
  1. #1

    Default Screen Capture

    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

  2. #2
    DCEmu Coder drEDN4wt's Avatar
    Join Date
    Aug 2005
    Location
    U.K.
    Posts
    172
    Rep Power
    0

    Default

    I take it that you mean in lua.

    try
    Code:
    ScreenBackground = screen

  3. #3

    Default

    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 ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •