{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=関数}}
Gets the raw and compressed [[PixelFormat|pixel formats]] usable for [[Image]]s, and whether each is supported.
== 関数 ==
=== 概要 ===
<source lang="lua">
formats = love.graphics.getImageFormats( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|table|formats|A table containing [[PixelFormat]]s as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats.}}

== 用例 ==
=== Display a list of the raw and compressed pixel formats usable with Images on the screen ===
<source lang="Lua">
formats = love.graphics.getImageFormats()

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>
== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[PixelFormat (日本語)]]
* [[love.graphics.newImage (日本語)]]
* [[love.image.newImageData (日本語)]]
* [[love.image.newCompressedData (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Sub-Category=SystemInfo (日本語)}}
{{#set:Description=Gets the [[PixelFormat|pixel formats]] usable for [[Image]]s, and whether each is supported.}}

== そのほかの言語 ==
{{i18n (日本語)|love.graphics.getImageFormats}}