{{newin|[[0.9.0]]|090|type=function}}
{{oldin|[[0.10.0]]|100|type=function|text=Use [[Mesh:setTexture]] instead}}

{{notice|[[0.9.0]] (bug) [[Image]]s are not released from memory automatically when nil-ing meshes. Call Mesh:setImage() to manually clear.}}

Sets the [[Image]] used when drawing the Mesh.

== Function ==
=== Synopsis ===
<source lang="lua">
Mesh:setImage( image )
</source>
=== Arguments ===
{{param|Image|image|The Image to texture the Mesh with when drawing.}}
=== Returns ===
Nothing.

== Function ==
=== Synopsis ===
<source lang="lua">
Mesh:setImage( )
</source>
=== Arguments ===
None.
=== Returns ===
Nothing.
=== Notes ===
Disables any Image from being used when drawing the Mesh. Untextured meshes have a white color by default.

== See Also ==
* [[parent::Mesh]]
* [[Mesh:getImage]]
[[Category:Functions]]
{{#set:Description=Sets the [[Image]] used when drawing the Mesh.}}
== Other Languages ==
{{i18n|Mesh:setImage}}