<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zingy</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zingy"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Zingy"/>
	<updated>2026-04-04T16:01:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetMaterialSize&amp;diff=35312</id>
		<title>DxGetMaterialSize</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetMaterialSize&amp;diff=35312"/>
		<updated>2013-04-09T11:19:40Z</updated>

		<summary type="html">&lt;p&gt;Zingy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This gets the dimensions of the supplied [[material]] element.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int [, int] dxGetMaterialSize ( element material )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''material :''' The material element whose size is to be gotten&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns two ''ints'' representing the width and height in pixels of the material, or false if an invalid parameter was passed to the function. &lt;br /&gt;
{{New feature/item|4.0130|1.3|4021|&lt;br /&gt;
If the material is a volume texture, this function will return three ''ints'' representing the width, height and depth.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myTexture = dxCreateTexture( &amp;quot;man.png&amp;quot; )&lt;br /&gt;
int width, height = dxGetMaterialSize( myTexture )&lt;br /&gt;
outputChatBox( &amp;quot;man.png is &amp;quot; .. tostring(width) .. &amp;quot; pixels wide and &amp;quot; .. tostring(height) .. &amp;quot; pixels high&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.04021|Added third return value for volume textures}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Zingy</name></author>
	</entry>
</feed>