Widget API: Frame:CreateTexture

Revision as of 19:15, 14 April 2008 by WoWWiki>Pcj

Widget API ← 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])