{{newin|[[0.9.0]]|090|type=function}}
Gets the width of the CompressedImageData.

== Function ==
=== Synopsis ===
<source lang="lua">
width = CompressedImageData:getWidth( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|width|The width of the CompressedImageData.}}

== Function ==
=== Synopsis ===
<source lang="lua">
width = CompressedImageData:getWidth( level )
</source>
=== Arguments ===
{{param|number|level|A mipmap level. Must be in the range of [1, [[CompressedImageData:getMipmapCount| CompressedImageData:getMipmapCount()]]].}}
=== Returns ===
{{param|number|width|The width of a specific mipmap level of the CompressedImageData.}}

== See Also ==
* [[parent:: CompressedImageData]]
* [[CompressedImageData:getHeight]]
* [[CompressedImageData:getMipmapCount]]
[[Category:Functions]]
{{#set:Description=Gets the width of the CompressedImageData.}}
== Other Languages ==
{{i18n| CompressedImageData:getWidth}}