{{newin|[[11.0]]|110|type=method}}
Gets the DPI scale factor of the Texture.

The DPI scale factor represents relative pixel density. 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.
== Function ==
=== Synopsis ===
<source lang="lua">
dpiscale = Texture:getDPIScale( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|dpiscale|The DPI scale factor of the Texture.}}
== See Also ==
* [[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.}}
== Other Languages ==
{{i18n|Texture:getDPIScale}}