rotate

abstract fun rotate(image: ImageRef, rotation: ImageRotation): Result<ImageRef>

Rotates the provided image by the specified rotation.

Return

The result containing the rotated image.

Parameters

image

The image to be rotated.

rotation

The rotation to apply.