Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by Mabs View Post
is it possible to know the actual size of an image loaded?because so far the following code always print 0
Code:
texture:SetTexture("test","a.png")print(texture:GetTextureWidth())texture:ResizeToTexture();print(texture:GetTextureWidth())
what the ResizeToTexture suppose to do ?
:GetTextureWidth() and :GetTextureHeight() are meant to return what you want. I believe there's a bug right now where they return 0 on the frame when the texture is loaded.
Jump to post...