×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2473 | Released: 24 Oct 2014, 1:37am | What's New | Download Now

object.maskScaleY

Description:

Retrieves or sets the y-scale factor for the display object's corresponding mask object, if any.

Syntax:

1
2
object.maskScaleY = value
value = object.maskScaleY

Example:

-- Image to be masked
local image = display.newImageRect( "image.png", 768, 1024 )
 
-- Mask
local mask = graphics.newMask( "circlemask.png" )
image:setMask( mask )
image.maskScaleX = 0.5
image.maskScaleY = 0.5

Parameters:

None.

Returns:

number: maskScaleY of object.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Build 2011.268
  • Windows:
    Build 2011.288
  • iOS:
    Build 2011.268
  • Android:
    Build 2011.288