---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/imagerotator/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

Rotates the image and then scales and crops the rotated image to fit the extent of the input image.

## Declaration

```swift
func applied(to image: CIImage, eventHandler: EventHandler? = nil) -> CIImage
```

## Parameters

- `image`: An image.
- `eventHandler`: An event handler.

## Return Value

Return Value The rotated image.
