Difference between revisions of "love.image.newEncodedImageData"

m (1 revision: Imported docs from potato.)
m
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
+
{{oldin|[[0.8.0]]|080|type=function|text=It has been replaced by [[ImageData:encode]]}}
 
+
Encodes ImageData.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 14: Line 14:
 
* [[parent::love.image]]
 
* [[parent::love.image]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Encodes ImageData.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|love.image.newEncodedImageData}}

Latest revision as of 02:43, 31 July 2020

Removed in LÖVE 0.8.0
It has been replaced by ImageData:encode.

Encodes ImageData.

Function

Synopsis

data = love.image.newEncodedImageData( imageData, format )

Arguments

ImageData imageData
The raw ImageData to encode.
ImageFormat format
The format to encode the image in.

Returns

Data data
The encoded image data.

See Also


Other Languages