{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=関数}}
ウィンドウの幅と高さをピクセル単位で取得します。

[[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).
== 関数 ==
=== 概要 ===
<source lang="lua">
pixelwidth, pixelheight = love.graphics.getPixelDimensions( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|number|pixelwidth|The width of the window in pixels.}}
{{param (日本語)|number|pixelheight|The width of the window in pixels.}}
== 関連 ==
* [[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 (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.getPixelDimensions}}