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

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

== Function ==
=== Synopsis ===
<source lang="lua">
width, height = CompressedImageData:getDimensions( 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.}}
{{param|number|height|The height of a specific mipmap level of the CompressedImageData.}}

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