Table of Contents

Application:setScaleMode

Available since version: Gideros 2012.2.2

Description:

Sets the automatic scale mode of the application. Accepted values are:

  • Application.NO_SCALE = "noScale"

  • Application.CENTER = "center"

  • Application.PIXEL_PERFECT = "pixelPerfect"

  • Application.LETTERBOX = "letterbox"

  • Application.CROP = "crop"

  • Application.STRETCH = "stretch"

  • Application.FIT_WIDTH = "fitWidth"

  • Application.FIT_HEIGHT = "fitHeight"

Syntax:

Application:setScaleMode(scaleMode)

Parameters:

  • scaleMode: (string)