Encodes the ImageData and optionally writes it to the save directory.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
filedata = ImageData:encode( format, filename )
ImageFormat format
string filename (nil)
FileData filedata
Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0
This variant is not supported in earlier or later versions.
ImageData:encode( outFile )
string outFile
Nothing.
Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0
This variant is not supported in earlier or later versions.
ImageData:encode( outFile, format )
string outFile
ImageFormat format
Nothing.
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
data = ImageData:encode( format )
ImageFormat format
Data data
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/ImageData:encode