Difference between revisions of "Application:setScaleMode"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Sets the automatic scale mode of the application.
 
Sets the automatic scale mode of the application.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
application:setScaleMode(scaleMode)
 
application:setScaleMode(scaleMode)
</source>
+
</syntaxhighlight>
  
  

Latest revision as of 18:10, 12 July 2023

Available since: Gideros 2012.2.2
Class: Application

Description

Sets the automatic scale mode of the application.

application:setScaleMode(scaleMode)


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