Creates a new [[Image]] from a filepath, [[FileData]], an [[ImageData]], or a [[CompressedImageData]], and optionally generates or specifies mipmaps for the image.
{{newobjectnotice (日本語)}}
== 関数 ==
=== 概要 ===
<source lang="lua">
image = love.graphics.newImage( filename )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The filepath to the image file.}}
=== 返値 ===
{{param (日本語)|Image|image|An Image object which can be drawn on screen.}}

== 関数 ==
=== 概要 ===
<source lang="lua">
image = love.graphics.newImage( imageData )
</source>
=== 引数 ===
{{param (日本語)|ImageData|imageData|An ImageData object. The Image will use this ImageData to reload itself when [[love.window.setMode]] is called.}}
=== 返値 ===
{{param (日本語)|Image|image|An Image object which can be drawn on screen.}}

== 関数 ==
{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=異形}}
=== 概要 ===
<source lang="lua">
image = love.graphics.newImage( compressedImageData )
</source>
=== 引数 ===
{{param (日本語)|CompressedImageData|compressedImageData|A CompressedImageData object. The Image will use this CompressedImageData to reload itself when [[love.window.setMode]] is called.}}
=== 返値 ===
{{param (日本語)|Image|image|An Image object which can be drawn on screen.}}

== 関数 ==
{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=異形}}
=== 概要 ===
<source lang="lua">
image = love.graphics.newImage( filename, flags )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The filepath to the image file (or a [[FileData]] or [[ImageData]] or [[CompressedImageData]] or [[ByteData]] object).}}
{{param (日本語)|table|flags|A table containing the following fields:}}
{{subparam|boolean|linear (false)|True if the image's pixels should be interpreted as being linear RGB rather than sRGB-encoded, if [[love.graphics.isGammaCorrect|gamma-correct rendering]] is enabled. Has no effect otherwise.}}
{{subparam|boolean or table|mipmaps (false)|If true, mipmaps for the image will be automatically generated (or taken from the images's file if possible, if the image originated from a [[CompressedImageData]]). If this value is a table, it should contain a list of other filenames of images of the same format that have progressively half-sized dimensions, all the way down to 1x1. Those images will be used as this Image's mipmap levels.}}

=== 返値 ===
{{param (日本語)|Image|image|A new Image object which can be drawn on screen.}}

== 関数 ==
{{newinoldin|[[0.9.1]]|091|[[0.10.0]]|100|type=variant}}
=== 概要 ===
<source lang="lua">
image = love.graphics.newImage( filename, format )
</source>
=== 引数 ===
{{param (日本語)|string|filename|The filepath to the image file (or a [[FileData]] or [[ImageData]] or [[CompressedImageData]] object.)}}
{{param (日本語)|TextureFormat|format|The format to interpret the image's data as.}}
=== 返値 ===
{{param (日本語)|Image|image|An Image object which can be drawn on screen.}}

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[Constructs::Image (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Object Creation (日本語)| ]]
{{#set:Description=Creates a new [[Image]].}}
{{#set:Since=000}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.newImage}}