int maxPixelRatio
read / write

The maximum pixel ratio for images on HiDPI displays.

The loader automatically detects the device's display pixel ratio and accordingly loads high resoltion images. The application has to provide images with the following naming schema:

1x resolution files are named "{imageName}@1x.png" 2x resoultion files are named "{imageName}@2x.png" 3x resoultion files are named "{imageName}@3x.png"

The default maximum pixel ratio is 2. Therefore the application has to provide images with the @1x and @2x suffix (or images with no name suffix to ignore this feature entirely).

var resourceManager = new ResourceManager();
resourceManager.addBitmapData("test", "images/test@1x.png");