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 formatstring 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 outFileNothing.
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 outFileImageFormat formatNothing.
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
data = ImageData:encode( format )
ImageFormat formatData data
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/ImageData:encode