API Frame CreateMaskTexture

Creates a mask texture.
 maskTexture = Frame:CreateMaskTexture([name, drawLayer, templateName, subLevel])
==Arguments==
:;name:
:;drawLayer:
:;templateName:
:;subLevel:
==Returns==
:;maskTexture:
==Example==
Applies a circle texture mask.
local f = CreateFrame("Frame", nil, UIParent)
f:SetPoint("CENTER")
f:SetSize(32, 32)
f.tex = f:CreateTexture(nil, "ARTWORK")
f.tex:SetAllPoints(f)
f.tex:SetTexture("Interface/Tooltips/UI-Tooltip-Background")
f.tex:SetColorTexture(0, 0, 0, 0.5) -- black, 50% opacity
f.mask = f:CreateMaskTexture()
f.mask:SetAllPoints(f.tex)
f.mask:SetTexture("Interface/CHARACTERFRAME/TempPortraitAlphaMask", "CLAMPTOBLACKADDITIVE", "CLAMPTOBLACKADDITIVE")
f.tex:AddMaskTexture(f.mask)
==Patch changes==
==See also==
* 
* 
===References===