Difference between revisions of "ImageData:encode"
(0.8.0) |
|||
Line 1: | Line 1: | ||
Encodes the ImageData. | Encodes the ImageData. | ||
== Function == | == Function == | ||
+ | {{oldin|[[0.8.0]]|type=variant}} | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 9: | Line 10: | ||
=== Returns === | === Returns === | ||
{{param|Data|data|The encoded image data.}} | {{param|Data|data|The encoded image data.}} | ||
+ | == Function == | ||
+ | {{newin|[[0.8.0]]|type=variant}} | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | ImageData:encode( outFile ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | {{param|string|outFile|Name of a file to write encoded data to. The format will be automatically deduced from the file extension.}} | ||
+ | === Returns === | ||
+ | Nothing. | ||
+ | == Function == | ||
+ | {{newin|[[0.8.0]]|type=variant}} | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | ImageData:encode( outFile, format ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | {{param|string|outFile|Name of a file to write encoded data to.}} | ||
+ | {{param|ImageFormat|format|The format to encode the image in.}} | ||
+ | === Returns === | ||
+ | Nothing. | ||
== See Also == | == See Also == | ||
* [[parent::ImageData]] | * [[parent::ImageData]] |
Revision as of 14:58, 4 January 2012
Encodes the ImageData.
Contents
Function
Removed in LÖVE 0.8.0 |
This variant is not supported in that and later versions. |
Synopsis
data = ImageData:encode( format )
Arguments
ImageFormat format
- The format to encode the image in.
Returns
Data data
- The encoded image data.
Function
Available since LÖVE 0.8.0 |
This variant is not supported in earlier versions. |
Synopsis
ImageData:encode( outFile )
Arguments
string outFile
- Name of a file to write encoded data to. The format will be automatically deduced from the file extension.
Returns
Nothing.
Function
Available since LÖVE 0.8.0 |
This variant is not supported in earlier versions. |
Synopsis
ImageData:encode( outFile, format )
Arguments
string outFile
- Name of a file to write encoded data to.
ImageFormat format
- The format to encode the image in.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info