Code: Select all
local sc=love.graphics.newScreenshot()
local f=love.filesystem.newFile("img.png")
f:open("w")
f:write(sc)
f:close()
Any help would be appreciated.
Code: Select all
local sc=love.graphics.newScreenshot()
local f=love.filesystem.newFile("img.png")
f:open("w")
f:write(sc)
f:close()
Code: Select all
s = love.graphics.newScreenshot()
d = love.image.newEncodedImageData( s, "bmp" )
success = love.filesystem.write( "screenshot.bmp", d)
Users browsing this forum: Google [Bot] and 11 guests