One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

ImageRotator

struct · iOS 17.0+ · SDK 27.1

struct ImageRotator

An image rotating transformer.

Members (4)

init · iOS 17.0+

init

TypeScript
static init(angle: number): ImageRotator
Swift declaration
init(angle: Double)

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.

method · iOS 17.0+

applied

TypeScript
applied(image: _CoreImage_CIImage, eventHandler?: (((arg0: Event) => void)) | null): _CoreImage_CIImage
Swift declaration
func applied(to image: CIImage, eventHandler: EventHandler? = nil) -> CIImage

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.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →