Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

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

API SetPortraitToTexture

Patch changes[]

Dragonflight 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.

See also[]

Advertisement