surface.GetTextureSize
Description
Returns the size of the texture with the associated texture ID.
For .png/.jpg textures loaded with Material you can use the $realheight and $realwidth material parameters (IMaterial:GetInt) to get the size of the image.
Arguments
Returns
Page views: 12,972
Updated: A Long Time Ago
Updated: A Long Time Ago
Garry's Mod
Rust
Steamworks
Wiki Help