API TextureBase GetTexCoord

Returns the texture space coordinates of the texture.
 ULx, ULy, LLx, LLy, URx, URy, LRx, LRy = TextureBase:GetTexCoord()
==Returns==
==Example==
If you simply want to get back the left, right, top, bottom coordinates for use in instead of using eight coordinates, but it's really up to preference.
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")
local left, top, _, bottom, right = tex:GetTexCoord()
print(left, right, top, bottom) -- 0, 1, 0, 1