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)
Code: Select all
local canvasData = canvas:getImageData()
local canvasImage = love.image.newEncodedImageData(canvasData, "bmp")
local success = love.filesystem.write("pic.bmp", canvasImage)
Code: Select all
canvasData:encode("pic.bmp")
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests