{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=メソッド}}
Gets the DPI scale factor of the Texture.

DPI スケールファクターは相対ピクセル密度を意味します。A DPI scale factor of 2 means the texture has twice the pixel density in each dimension (4 times as many pixels in the same area) compared to a texture with a DPI scale factor of 1.

For example, a texture with pixel dimensions of 100x100 with a DPI scale factor of 2 will be drawn as if it was 50x50. This is useful with high-dpi /  retina displays to easily allow swapping out higher or lower pixel density Images and Canvases without needing any extra manual scaling logic.
== 関数 ==
=== 概要 ===
<source lang="lua">
dpiscale = Texture:getDPIScale( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|number|dpiscale|The DPI scale factor of the Texture.}}
== 関連 ==
* [[parent::Texture (日本語)]]
* [[Texture:getDimensions (日本語)]]
* [[Texture:getPixelDimensions (日本語)]]
* [[love.graphics.newImage (日本語)]]
* [[love.graphics.newCanvas (日本語)]]
* [[Config Files (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets the DPI scale factor of the Texture.}}
== そのほかの言語 ==
{{i18n (日本語)|Texture:getDPIScale}}