{{newinoldin|[[0.9.2]]|092|[[11.0]]|110|type=function|text=It has been replaced by [[love.graphics.getImageFormats]]}}
Gets the available [[CompressedFormat|compressed image formats]], and whether each is supported.
== Function ==
=== Synopsis ===
<source lang="lua">
formats = love.graphics.getCompressedImageFormats( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|table|formats|A table containing [[CompressedImageFormat]]s as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats.}}

== Examples ==
=== Display a list of the compressed image formats on the screen ===
<source lang="Lua">
formats = love.graphics.getCompressedImageFormats()

function love.draw()
    local y = 0
    for formatname, formatsupported in pairs(formats) do
        local str = string.format("Supports format '%s': %s", formatname, tostring(formatsupported))
        love.graphics.print(str, 10, y)
        y = y + 20
    end
end
</source>
== See Also ==
* [[parent::love.graphics]]
* [[CompressedImageFormat]]
* [[love.graphics.newImage]]
* [[love.image.newCompressedData]]
[[Category:Functions]]
{{#set:Sub-Category=SystemInfo}}
{{#set:Description=Gets the available [[CompressedFormat|compressed image formats]], and whether each is supported.}}

== Other Languages ==
{{i18n|love.graphics.getCompressedImageFormats}}