Difference between revisions of "love.image.newImageData"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Create a new blank ImageData. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 41: | Line 41: | ||
* [[parent::love.image]] | * [[parent::love.image]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Create a new blank ImageData.}} |
Revision as of 16:17, 14 February 2010
Create a new blank ImageData.
Contents
Function
Synopsis
imageData = love.image.newImageData( x, y )
Arguments
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.