Difference between revisions of "love.image.newImageData"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Create a new blank ImageData.
 
Create a new blank ImageData.
 
== Function ==
 
== Function ==
Line 42: Line 41:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Create a new blank ImageData.}}
 
{{#set:Description=Create a new blank ImageData.}}
 +
== Other Languages ==
 +
{{i18n|love.image.newImageData}}

Revision as of 20:29, 18 November 2010

Create a new blank ImageData.

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

Other Languages