Save Canvas as image to file - 0.8
Posted: Sat Apr 21, 2012 4:09 pm
Hi,
i had this code pre 0.8
newEncodedImageData seems to be not available anymore(?), how can i repair it?
i had this code pre 0.8
Code: Select all
local canvasData = canvas:getImageData()
local canvasImage = love.image.newEncodedImageData(canvasData, "bmp")
local success = love.filesystem.write("pic.bmp", canvasImage)