Crop
public struct Crop : XMLRepresentable
Modifies the visible image width and height by cropping, trimming, or panning.
-
Specifies the mode of a crop adjustment.
Declaration
Swift
public enum Mode : String, XMLRepresentable
-
The crop rect used for a crop mode crop adjustment.
Declaration
Swift
public var cropRect: CropRect?
-
The trim rect used for a trim mode crop adjustment.
Declaration
Swift
public var trimRect: TrimRect?
-
The pan rects used for a pan mode crop adjustment.
Declaration
Swift
public var panRects: [PanRect]?
-
The mode of the crop adjustment.
Declaration
Swift
public var mode: Mode
-
A Boolean value indicating whether the crop adjustment is enabled.
Declaration
Swift
public var isEnabled: Bool { get set }
-
Initializes a new crop adjustment.
Declaration
Swift
public init(mode: Mode)
Parameters
mode
The mode of the crop adjustment.