Difference between revisions of "love.image.isCompressed"

(Created page)
 
m
 
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
Determines whether a file can be loaded as [[CompressedData]].
+
Determines whether a file can be loaded as [[CompressedImageData]].
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 9: Line 9:
 
{{param|string|filename|The filename of the potentially compressed image file.}}
 
{{param|string|filename|The filename of the potentially compressed image file.}}
 
=== Returns ===
 
=== Returns ===
{{param|boolean|compressed|Whether the file can be loaded as [[CompressedData]] or not.}}
+
{{param|boolean|compressed|Whether the file can be loaded as [[CompressedImageData]] or not.}}
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 18: Line 18:
 
{{param|FileData|fileData|A FileData potentially containing a compressed image.}}
 
{{param|FileData|fileData|A FileData potentially containing a compressed image.}}
 
=== Returns ===
 
=== Returns ===
{{param|boolean|compressed|Whether the FileData can be loaded as [[CompressedData]] or not.}}
+
{{param|boolean|compressed|Whether the FileData can be loaded as [[CompressedImageData]] or not.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.image]]
 
* [[parent::love.image]]
 
* [[love.image.newCompressedData]]
 
* [[love.image.newCompressedData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Determines whether a file can be loaded as [[CompressedData]].}}
+
{{#set:Description=Determines whether a file can be loaded as [[CompressedImageData]].}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.image.isCompressed}}
 
{{i18n|love.image.isCompressed}}

Latest revision as of 14:18, 1 January 2016

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Determines whether a file can be loaded as CompressedImageData.

Function

Synopsis

compressed = love.image.isCompressed( filename )

Arguments

string filename
The filename of the potentially compressed image file.

Returns

boolean compressed
Whether the file can be loaded as CompressedImageData or not.

Function

Synopsis

compressed = love.image.isCompressed( fileData )

Arguments

FileData fileData
A FileData potentially containing a compressed image.

Returns

boolean compressed
Whether the FileData can be loaded as CompressedImageData or not.

See Also

Other Languages