Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.08

Description

Description:
Sets the rotation angle of Images.

Images that are to be rotated must have the three following properties set in their control definition:

  • angle: Number - Initial rotation angle (0=upright).
  • centerU: Number - Rotation axis in X.
  • centerV: Number - Rotation axis in Y.

When a rotated image is placed, its initial size and shape define the area within which it is rotated. If, due to rotation, any part of the image falls outside this area, then those parts are clipped off.

To prevent this, the image itself has to be large enough to allow full rotation, without ever extending beyond its initial shape:

Syntax

Syntax:control ctrlSetAngle angle
Parameters:
  • control: Control - Control of style: ST_PICTURE (48).
  • angle: Number - Rotation angle (0 is upright, can be negative).
Return Value:Nothing

Examples

Examples:
_ImgControl ctrlSetAngle 45

Additional Information

See also: ctrlAngle
Multiplayer: 
Problems: 

Notes