Type String
Library display.*
Revision Current Public Release (2017.3068)
Keywords imageSuffix


Returns the suffix used by the dynamic image selection feature of Corona. If the content scaling is 1, then returns nil.

The suffixes are defined in a table in config.lua. Corona will select the closest matching suffix, defined as the one whose scale is equal to or smaller than the current content scaling factor (the ratio between the pixel dimensions of the screen and the content dimensions specified in config.lua). See the Project Configuration guide for details.


local imageSuffix = display.imageSuffix
print( imageSuffix )