Difference between revisions of "ImageData:encode"

(Moved old variant down.)
(Save directory, hint hint.)
Line 1: Line 1:
Encodes the ImageData.
+
Encodes the ImageData and writes it to the save directory.
  
 
== Function ==
 
== Function ==

Revision as of 20:32, 19 October 2012

Encodes the ImageData and writes it to the save directory.

Function

Available since LÖVE 0.8.0
This variant is not supported in earlier versions.

Synopsis

ImageData:encode( outFile )

Arguments

string outFile
Name of a file to write encoded data to. The format will be automatically deduced from the file extension.

Returns

Nothing.

Function

Available since LÖVE 0.8.0
This variant is not supported in earlier versions.

Synopsis

ImageData:encode( outFile, format )

Arguments

string outFile
Name of a file to write encoded data to.
ImageFormat format
The format to encode the image in.

Returns

Nothing.

Function

Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.

Synopsis

data = ImageData:encode( format )

Arguments

ImageFormat format
The format to encode the image in.

Returns

Data data
The encoded image data.

See Also


Other Languages