Filestack Documentation

Class Rotate​Transform

public class RotateTransform: Transform  

Rotates an image in a range from 0 to 359 degrees or based on Exif information.

RotateTransform RotateTransform Transform Transform RotateTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a RotateTransform object with rotation based on Exif information.

init(deg:​)

public init(deg: Int)  

Initializes a RotateTransform object using a given rotation degree.

Parameters

deg Int

The rotation angle in degrees. Valid range: 0...359

Methods

exif(_:​)

@discardableResult
    func exif(_ value: Bool) -> Self  

Adds the exif option.

Parameters

value Bool

If true, sets the Exif orientation of the image to Exif orientation 1. A false value takes an image and sets the exif orientation to the first of the eight EXIF orientations. The image will behave as though it is contained in an html img tag if displayed in an application that supports Exif orientations.

background(_:​)

@discardableResult
    func background(_ value: UIColor) -> Self  

Adds the background option.

Parameters

value UIColor

The background color to display if the image is rotated less than a full 90 degrees.