Widget API: Frame:CreateTexture

Revision as of 09:47, 29 February 2008 by WoWWiki>Amro

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])