Creates a transformer that rotates an image by a specified angle.
- Parameter angle: The angle, in radians, by which to rotate the coordinate space of the specified context.
Positive values rotate counterclockwise and negative values rotate clockwise.
get · iOS 17.0+
angle
TypeScript
get angle(): number
Swift declaration
var angle: Double
The angle, in radians, by which to rotate the coordinate space of the specified context. Positive values rotate
counterclockwise and negative values rotate clockwise.
set · iOS 17.0+
angle
TypeScript
set angle(value: number)
Swift declaration
var angle: Double
The angle, in radians, by which to rotate the coordinate space of the specified context. Positive values rotate
counterclockwise and negative values rotate clockwise.
Rotates the image and then scales and crops the rotated image to fit the extent of the input image.
- Parameters:
- image: An image.
- eventHandler: An event handler.
- Returns: The rotated image.