API SetPortraitToTexture

From Wowpedia
Jump to: navigation, search

Sets the texture to be displayed from a file applying a circular opacity mask making it look round like portraits.

SetPortraitToTexture(texture or "texture", "texturePath");

Arguments
"texture" : The name of a texture, or the texture object itself.
"texturePath" : The texture file to use.

This function only seems to work on BLP textures. It will also fail to work if the texture path includes the .blp file extension.