{{newin|[[11.0]]|110|type=method}}
Gets the width and height in pixels of the Texture.

[[Texture:getDimensions]] gets the dimensions of the texture in units scaled by the texture's [[Texture:getDPIScale|DPI scale factor]], rather than pixels. Use getDimensions for calculations related to drawing the texture (calculating an origin offset, for example), and getPixelDimensions only when dealing specifically with pixels, for example when using [[Canvas:newImageData]].
== Function ==
=== Synopsis ===
<source lang="lua">
pixelwidth, pixelheight = Texture:getPixelDimensions( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|pixelwidth|The width of the Texture, in pixels.}}
{{param|number|pixelheight|The height of the Texture, in pixels.}}
== See Also ==
* [[parent::Texture]]
* [[Texture:getDPIScale]]
* [[Texture:getPixelWidth]]
* [[Texture:getPixelHeight]]
[[Category:Functions]]
{{#set:Description=Gets the width and height in pixels of the Texture.}}
== Other Languages ==
{{i18n|Texture:getPixelDimensions}}