Language Reference Guide : 4. System Classes : SpriteDescriptor Class : Angle Attribute
 
Share this page                  
Angle Attribute
Data Type: integer
4GL Access: RW
The Angle attribute specifies the amount the sprite image has been rotated before display. Allowed values are 0–360 degrees.
If you want to maintain the original size of the sprite when rotated at any angle except 0, 90, 180, 270, or 360, you must specify an increased size for the sprite:
For a sprite of width w and height h, the new size at angle Θ is w*sinΘ + h*cosΘ for the width, and w*cosΘ + h*sinΘ for the height.
This attribute is ignored when the descriptor is used to define a sectormap.
Default: NULL (no rotation)