TextureData:encode

Encodes the TextureData to png and writes it to the specified file.

success = TextureData:encode(filename)

Arguments

NameTypeDescription
filenamestringThe file to write the png data to.

Returns

NameTypeDescription
successbooleanWhether or not the file was successfully written to.

See also