http://www.oxeyegames.com/wiki/index.php?title=GetTextureSize&feed=atom&action=historyGetTextureSize - Revision history2024-03-29T09:04:01ZRevision history for this page on the wikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php?title=GetTextureSize&diff=283&oldid=prevJeb: Created page with '{{VideoMethod | video.getTextureSize(textureFileName) | Fetches the width and height of a texture. | {{MethodParam|textureFileName|String|The name of the texture you want to fetc...'2009-12-27T20:28:15Z<p>Created page with '{{VideoMethod | video.getTextureSize(textureFileName) | Fetches the width and height of a texture. | {{MethodParam|textureFileName|String|The name of the texture you want to fetc...'</p>
<p><b>New page</b></p><div>{{VideoMethod<br />
|<br />
video.getTextureSize(textureFileName)<br />
|<br />
Fetches the width and height of a texture.<br />
|<br />
{{MethodParam|textureFileName|String|The name of the texture you want to fetch the size of. Supported file formats are TGA and JPEG.}}<br />
|<br />
Returns width and height of the texture, or nothing if the texture can't be read or loaded.<br />
}}<br />
=== Notes ===<br />
Once a texture has been loaded, it will be cached in memory. Textures are loaded as soon as they are used.<br />
<br />
=== Example ===<br />
<pre><br />
local w, h = video.getTextureSize("image.jpg")<br />
</pre></div>Jeb