Type String Library display.* Revision Release 2022.3683 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 )