Class
RotateTransform
public class RotateTransform: Transform
Rotates an image in a range from 0 to 359 degrees or based on Exif information.
Relationships
Superclass
Transform
:nodoc:
Initializers
init(deg:)
public init(deg: Int)
Initializes a RotateTransform
object using a given rotation degree.
Parameters
Name | Type | Description |
---|---|---|
deg | Int |
The rotation angle in degrees. Valid range: |
Methods
exif(_:)
@discardableResult
func exif(_ value: Bool) -> Self
Adds the exif
option.
Parameters
Name | Type | Description |
---|---|---|
value | Bool |
If |
background(_:)
@discardableResult
func background(_ value: UIColor) -> Self
Adds the background
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
The background color to display if the image is rotated less than a full 90 degrees. |