WoW:API Frame CreateTexture: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: Good for solid color backgrounds instead of using the SetBackdrop function. FRAME.texture = FRAME:CreateTexture() texture:SetAllPoints(FRAME) texture:SetTexture(r,g,b[,a]))
 
No edit summary
Line 1: Line 1:
Good for solid color backgrounds instead of using the SetBackdrop function.
{{widgetmethod}}


FRAME.texture = FRAME:CreateTexture()
<center>'''Frame:CreateTexture'''</center>


texture:SetAllPoints(FRAME)
Good for solid color backgrounds instead of using the SetBackdrop function.


texture:SetTexture(r,g,b[,a])
FRAME.texture = FRAME:CreateTexture()
texture:SetAllPoints(FRAME)
texture:SetTexture(r,g,b[,a])

Revision as of 09:47, 29 February 2008

Widget API ← Frame < CreateTexture

Frame:CreateTexture

Good for solid color backgrounds instead of using the SetBackdrop function.

FRAME.texture = FRAME:CreateTexture()
texture:SetAllPoints(FRAME)
texture:SetTexture(r,g,b[,a])