Difference between revisions of "(Image):getWrap"

m (paren style :))
(update for love 0.6.2)
Line 1: Line 1:
 
Gets the wrapping properties of an Image.
 
Gets the wrapping properties of an Image.
  
The return values of this function may either be 0 or 1. A zero indicates that the image is not repeated horizontally or vertically, respectively, when the image is drawn with a larger [[Quad|Quad]] than the image's extent. A one indicates that the image is repeated in the corresponding direction.
+
This functions returns the currently set horizontal and vertical [[WrapMode||wrapping modes]] for the image.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 10: Line 10:
 
None
 
None
 
=== Returns ===
 
=== Returns ===
{{param|number|horiz|Horizontal wrapping mode of the image.}}
+
{{param|WrapMode|horiz|Horizontal wrapping mode of the image.}}
{{param|number|vert|Vertical wrapping mode of the image.}}
+
{{param|Wrapmode|vert|Vertical wrapping mode of the image.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Image]]
 
* [[parent::Image]]
 +
* [[WrapMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the wrapping properties of an Image.}}
 
{{#set:Description=Gets the wrapping properties of an Image.}}

Revision as of 12:25, 6 March 2010

Gets the wrapping properties of an Image.

This functions returns the currently set horizontal and vertical |wrapping modes for the image.

Function

Synopsis

horiz, vert = Image:getWrap( )

Arguments

None

Returns

WrapMode horiz
Horizontal wrapping mode of the image.
Wrapmode vert
Vertical wrapping mode of the image.

See Also