Application:setScaleMode

From GiderosMobile
Revision as of 17:59, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2012.2.2
Class: Application

Description

Sets the automatic scale mode of the application. <syntaxhighlight lang="lua"> application:setScaleMode(scaleMode) </source>


Accepted values for scaleMode are:

  • Application.NO_SCALE
  • Application.CENTER
  • Application.PIXEL_PERFECT
  • Application.LETTERBOX
  • Application.CROP
  • Application.STRETCH
  • Application.FIT_WIDTH
  • Application.FIT_HEIGHT

Parameters

scaleMode: (string) the scale mode to apply