Returns:

staticresize(width, height)

Parameters:

staticsetAntiAlias(context, enableopt)

enable/disable image smoothing (scaling interpolation) for the given context

Parameters:

Name

Type

Attributes

Default

Description

context

Context2d

enable

Boolean

<optional>

false

staticsetMask(maskopt)

A mask limits rendering elements to the shape and position of the given mask object.
So, if the renderable is larger than the mask, only the intersecting part of the renderable will be visible.
Mask are not preserved through renderer context save and restore.