Dev - Lua Libraries

Lua Command: s3sprite.setSize

Parameters

Return Values

void

- no return values

Signature

s3sprite.setSize(int spriteID, int width, int height)

Description

Sets the absolute width and height of the sprite with the given spriteID in pixels. By default these values are equal to the values returned by s3sprite.getImageSize for the source image.

Note:

Negative sizes can be used for mirroring

Note:

Use s3sprite.setScale if you want to set the relative size