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

The graphics coordinate system and [[love.graphics.getWidth]] use units scaled by the screen's [[love.graphics.getDPIScale|DPI scale factor]], rather than raw pixels. Use getWidth for calculations related to drawing to the screen and using the coordinate system (calculating the center of the screen, for example), and getPixelWidth only when dealing specifically with underlying pixels (pixel-related calculations in a pixel [[Shader]], for example).
== 関数 ==
=== 概要 ===
<source lang="lua">
pixelwidth = love.graphics.getPixelWidth( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|number|pixelwidth|The width of the window in pixels.}}
== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[love.graphics.getPixelHeight (日本語)]]
* [[love.graphics.getPixelDimensions (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=ウィンドウの幅をピクセル単位で取得します。}}
{{#set:Sub-Category=Window (日本語)}}
== そのほかの言語 ==
{{i18n (日本語)|love.graphics.getPixelWidth}}