WoW:API Texture SetTexture: Difference between revisions

m
Move page script moved page API Texture SetTexture to WoW:API Texture SetTexture without leaving a redirect
m (→‎Notes: commas)
m (Move page script moved page API Texture SetTexture to WoW:API Texture SetTexture without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}Changes the texture of a texture object.
Changes the texture of a texture object.
  texture:SetTexture("filename"[, tile]);
  texture:SetTexture("filename"[, tile];
  texture:SetColorTexture(r, g, b[, a]);
  texture:SetTexture(r, g, b[, a]);


==Arguments==
==Arguments==
'''filename [,tile]'''
'''filename [,tile]'''
:; filename : String - Name of the texture image. Images may be in BLP or TGA format, and must have power-of-two dimensions up to 1024 pixels. TGA images may have 8, 24, or 32 bits per pixel for grayscale, RGB, and RGBA images respectively; RLE is supported.
:; filename
:; tile : Boolean flag - Tile the image if the coordinates set using [[API Texture SetTexCoord|Texture:SetTexCoord]] exceed the 0.0-1.0 range.
:: String - Name of the texture image. Images may be in BLP or TGA format, and must have power-of-two dimensions up to 1024 pixels. TGA images may have 8, 24, or 32 bits per pixel for grayscale, RGB, and RGBA images respectively; RLE is supported.
:; tile
:: Boolean flag - Tile the image if the coordinates set using [[API Texture SetTexCoord|Texture:SetTexCoord]] exceed the 0.0-1.0 range.


'''r, g, b, a'''
'''r, g, b, a'''
:; r : Number (0.0 to 1.0) - Red component.
:; r
:; g : Number (0.0 to 1.0) - Green component.
:: Number (0.0 to 1.0) - Red component.
:; b: Number (0.0 to 1.0) - Blue component.
:; g
:; a : Number (0.0 to 1.0) - Alpha component (1.0 is opaque, 0.0 is transparent). The default value is 1.0.
:: Number (0.0 to 1.0) - Green component.
:; b
:: Number (0.0 to 1.0) - Blue component.
:; a
:: Number (0.0 to 1.0) - Alpha component (1.0 is opaque, 0.0 is transparent). The default value is 1.0.


==Description==
==Description==
Anonymous user