Take a screenshot with MOAI

1 vote · 0 comments

Sometimes you need a screenshot of your App - here's how to do it.

raw ·
copy
· download
local img = MOAIImage.new() MOAIGfxDevice.getFrameBuffer():grabNextFrame(img, function() img:writePNG('screenshot.png') end)

Be the first to comment

Sign in with OpenID