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
image:encode("png","aPngImage.png")