Difference between revisions of "love.image.newImageData"

 
m (1 revision: Imported docs from potato.)
(No difference)

Revision as of 15:54, 14 February 2010


Function

Synopsis

imageData = love.image.newImageData( x, y )

Arguments

number x
The width of the ImageData.
number y
The height of the ImageData.

Returns

ImageData imageData
The new ImageData object.

Function

Synopsis

imageData = love.image.newImageData( filename )

Arguments

string filename
The filename of the image file.

Returns

ImageData imageData
The new ImageData object.

Function

Synopsis

imageData = love.image.newImageData( file )

Arguments

File file
A File to load the image data from.

Returns

ImageData imageData
The new ImageData object.

Function

Synopsis

imageData = love.image.newImageData( data )

Arguments

Data data
The encoded data to decode into image data.

Returns

ImageData imageData
The new ImageData object.

See Also