Difference between revisions of "love.image.newImageData"

(redundancy and incorrect summary)
Line 30: Line 30:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.image]]
 
* [[parent::love.image]]
 +
* [[Constructs::ImageData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Create a new blank ImageData.}}
 
{{#set:Description=Create a new blank ImageData.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.image.newImageData}}
 
{{i18n|love.image.newImageData}}

Revision as of 10:25, 25 March 2011

Create a new ImageData object.

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( data )

Arguments

Data data
The encoded data to decode into image data.

Returns

ImageData imageData
The new ImageData object.

See Also


Other Languages