surface.GetTextureSize
From GMod Wiki
Function | |
Syntax |
surface.GetTextureSize( Integer The texture ID. ) Where is this used? |
Description: | |
Gets the height and width of a texture. | |
Returns: | Integer Width, Integer Height |
Part of Library: | Surface |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.GetTextureSize]Surface.GetTextureSize [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Outputs the size of the 1st players spray. |
---|---|
Used on | |
Code | local w, h = surface.GetTextureSize( surface.GetTextureID( "Decals/playerlogo01" ) ) |
Output | N/A |