Provides an interface to decode encoded image data.
Raw (decoded) image data.
To create an empty ImageData:
imageData = love.image.newImageData(width, height)
To an ImageData from an image file:
imageData = love.image.newImageData(filename)
Returns the width of the ImageData.
Returns the height of the ImageData.
Returns the color of a pixel in the ImageData.
r, g, b, a = imageData:getPixel(x, y)
Sets the color of a pixel in the ImageData.
imageData:setPixel(x, y, r, g, b, a)
Returns the width and height of the ImageData.
width, height = imageData:getDimensions()