Difference between revisions of "(Image):getWrap"

(add new func)
 
(some stylistic changes)
Line 1: Line 1:
Get the wrapping settings 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 than the image's extent. A one indicates that the image is repeated in the corresponding direction.
+
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.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[parent::Image]]
 
* [[parent::Image]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Get the wrapping settings of an Image.}}
+
{{#set:Description=Gets the wrapping properties of an Image.}}

Revision as of 14:50, 28 February 2010

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 than the image's extent. A one indicates that the image is repeated in the corresponding direction.

Function

Synopsis

horiz, vert = Image:getWrap()

Arguments

None

Returns

number horiz
Horizontal wrapping mode of the image.
number vert
Vertical wrapping mode of the image.

See Also