Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Applies a circular mask to a texture, making it resemble a portrait.
SetPortraitToTexture(texture, path)
Arguments[]
- texture
- Texture🔗
- path
- string
Example[]
local f = CreateFrame("Frame")
f:SetPoint("CENTER")
f:SetSize(64, 64)
f.tex = f:CreateTexture()
f.tex:SetAllPoints(f)
SetPortraitToTexture(f.tex, "interface/icons/inv_mushroom_11")
Patch changes[]
Patch 10.2.0 (PTR): The texture
parameter must now be a texture object. Previously, it could be a string that named a global texture object.