{{oldin|[[11.0]]|110|type=function|text=It has been replaced by [[love.graphics.captureScreenshot]]}}
Creates a screenshot and returns the image data.
{{newobjectnotice (日本語)}}

== 関数 ==
=== 概要 ===
<source lang="lua">
screenshot = love.graphics.newScreenshot( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|ImageData|screenshot|The image data of the screenshot.}}

== 関数 ==
{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=異形}}
=== 概要 ===
<source lang="lua">
screenshot = love.graphics.newScreenshot( copyAlpha )
</source>
=== 引数 ===
{{param (日本語)|boolean|copyAlpha (false)|Whether to include the screen's alpha channel in the ImageData. If false, the screenshot will be fully opaque.}}
=== 返値 ===
{{param (日本語)|ImageData|screenshot|The image data of the screenshot.}}

== 用例 ==
Create a new screenshot and write it to the save directory.
<source lang="lua">
function love.load()
    love.filesystem.setIdentity('screenshot_example');
end

function love.keypressed()
    local screenshot = love.graphics.newScreenshot();
    screenshot:encode('png', os.time() .. '.png');
end
</source>

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[Constructs::ImageData (日本語)]]
* [[ImageData:encode (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Creates a screenshot and returns the [[ImageData]].}}
{{#set:Since=000}}
{{#set:Sub-Category=Object Creation (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.newScreenshot}}