Page 1 of 1
get canvas pixel ? store canvas on imageData ?
Posted: Thu Jan 17, 2013 9:03 am
by splasher
final target is to write a text on an image.
someone know if it is possible to store an area of canvas into an image?
thanks
arturo
Re: get canvas pixel ? store canvas on imageData ?
Posted: Thu Jan 17, 2013 9:20 am
by Zamp
A simple way
Code: Select all
canvas = love.graphics.newCanvas(width,height)
--do your stuff here
imgdata = canvas:getImageData()
imgdata:encode("render.png")
I don't know if that answers your question
Re: get canvas pixel ? store canvas on imageData ?
Posted: Thu Jan 17, 2013 7:33 pm
by splasher
thank you.
it's what i need.
arturo