SetPortraitToTexture

From Wowpedia
Jump to: navigation, search

Applies a circular mask to a texture, making it resemble a portrait.

SetPortraitToTexture(textureObject, "texturePath")

Arguments

textureObject or textureName 
object : Texture
texturePath 
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")

API SetPortraitToTexture.png

Patch changes

See also

External Links