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

[[love.graphics.getDimensions]] gets the dimensions of the window in units scaled by the screen's [[love.graphics.getDPIScale|DPI scale factor]], rather than pixels. Use getDimensions for calculations related to drawing to the screen and using the graphics coordinate system (calculating the center of the screen, for example), and getPixelDimensions only when dealing specifically with underlying pixels (pixel-related calculations in a pixel [[Shader]], for example).
== Function ==
=== Synopsis ===
<source lang="lua">
pixelwidth, pixelheight = love.graphics.getPixelDimensions( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|pixelwidth|The width of the window in pixels.}}
{{param|number|pixelheight|The width of the window in pixels.}}
== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.getPixelWidth]]
* [[love.graphics.getPixelHeight]]
[[Category:Functions]]
{{#set:Description=Gets the width and height in pixels of the window.}}
{{#set:Sub-Category=Window}}
== Other Languages ==
{{i18n|love.graphics.getPixelDimensions}}