love.image.newImageData
Creates a new ImageData object.
imageData = love.image.newImageData( width, height )
width number The width of the ImageData.
height number The height of the ImageData.
imageData ImageData The new blank ImageData object. Each pixel's color values, (including the alpha values!) will be set to zero.
imageData = love.image.newImageData( width, height, format, data )
width number The width of the ImageData.
height number The height of the ImageData.
format ('rgba8') PixelFormat The pixel format of the ImageData.
data (nil) string Optional raw byte data to load into the ImageData, in the format specified by ''format''.
imageData ImageData The new ImageData object.
imageData = love.image.newImageData( width, height, data )
width number The width of the ImageData.
height number The height of the ImageData.
data string The data to load into the ImageData (RGBA bytes, left to right and top to bottom).
imageData ImageData The new ImageData object.
imageData = love.image.newImageData( filename )
filename string The filename of the image file.
imageData ImageData The new ImageData object.
imageData = love.image.newImageData( filedata )
filedata FileData The encoded file data to decode into image data.
imageData ImageData The new ImageData object.