Difference between revisions of "love.graphics.newScreenshot"

m
m
Line 13: Line 13:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Creates a screenshot and returns the image data.}}
+
{{#set:Description=Creates a screenshot and returns the [[ImageData]].}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
{{#set:Sub-Category=Object Creation}}
 
{{#set:Sub-Category=Object Creation}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.newScreenshot}}
 
{{i18n|love.graphics.newScreenshot}}

Revision as of 22:12, 29 March 2013

Creates a screenshot and returns the image data.

O.png This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused!  



Function

Synopsis

screenshot = love.graphics.newScreenshot( )

Arguments

None.

Returns

ImageData screenshot
The image data of the screenshot

See Also


Other Languages