API SetPortraitTexture

Sets a texture to a unit's 2D portrait.
 SetPortraitTexture(textureObject, unitToken [, disableMasking])
==Arguments==
:;textureObject:
:;unitToken:
:;disableMasking:
==Example==
local f = CreateFrame("Frame")
f:SetPoint("CENTER")
f:SetSize(64, 64)
f.tex = f:CreateTexture()
f.tex:SetAllPoints(f)
SetPortraitTexture(f.tex, "player")
==Patch changes==