BoxedPhotoEditModel

@objc(IMGLYBoxedPhotoEditModel) open class BoxedPhotoEditModel: NSObject

A BoxedPhotoEditModel holds information about any modification that should be applied to an image. The actual PhotoEditModel is a struct and not exposable to Objective-C. This class boxes the actual PhotoEditModel for Objective-C compatibility.

  • Creates a default boxed photo edit model.

    Declaration

    Swift

    public override init()
  • Creates a boxed photo edit model for the given photo edit model.

    Declaration

    Swift

    public init(photoEditModel: PhotoEditModel)

    Parameters

    photoEditModel

    The photo edit model to box.

  • The orientation of the image.

    Declaration

    Swift

    open var appliedOrientation: Orientation
  • Enable auto enhancement.

    Declaration

    Swift

    open var isAutoEnhancementEnabled: Bool
  • The brightness of the image.

    Declaration

    Swift

    open var brightness: Float
  • The contrast of the image.

    Declaration

    Swift

    open var contrast: Float
  • The shadow amount of the image.

    Declaration

    Swift

    open var shadows: Float
  • The highlights amount of the image.

    Declaration

    Swift

    open var highlights: Float
  • The exposure amount of the image.

    Declaration

    Swift

    open var exposure: Float
  • The clarity amount of the image.

    Declaration

    Swift

    open var clarity: Float
  • The identifier of the effect filter to apply to the image.

    Declaration

    Swift

    open var effectFilterIdentifier: String
  • The intensity of the effect filter.

    Declaration

    Swift

    open var effectFilterIntensity: Float
  • The first normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the top left.

    Declaration

    Swift

    open var focusNormalizedControlPoint1: CGPoint
  • The second normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the top left.

    Declaration

    Swift

    open var focusNormalizedControlPoint2: CGPoint
  • The blur radius to use for focus. Default is 25.

    Declaration

    Swift

    open var focusBlurRadius: Float
  • The normalized fade width to use for focus. Default is 0.1.

    Declaration

    Swift

    open var focusNormalizedFadeWidth: Float
  • The IMGLYFocusType to apply to the image.

    Declaration

    Swift

    open var focusType: FocusType
  • This property is true if the image has neither been cropped nor rotated.

    Declaration

    Swift

    open var isGeometryIdentity: Bool
  • The normalized crop rect of the image.

    Declaration

    Swift

    open var normalizedCropRect: CGRect
  • An image that should be placed on top of the input image after all other effects have been applied.

    Declaration

    Swift

    open var overlayImage: CIImage?
  • The saturation of the image.

    Declaration

    Swift

    open var saturation: Float
  • The straighten angle of the image.

    Declaration

    Swift

    open var straightenAngle: Float
  • The amount by which the image should be inset (this is used when a frame is applied to make the image fit inside the frame). The inset is specified as a value relative to the smaller side of the image.

    Declaration

    Swift

    public var imageInsets: UIEdgeInsets
  • An image that should be placed between the input image and the overlayImage.

    Declaration

    Swift

    public var backdropImage: CIImage?
  • The blend mode that is use to apply the backdrop image.

    Declaration

    Swift

    public var backdropBlendMode: BlendMode
  • A value between 0 and 1, that determins the intensity that is used to render the backdrop.

    Declaration

    Swift

    public var backdropIntensity: Float
  • The identity orientation of a photo edit model.

    Declaration

    Swift

    public class var identityOrientation: Orientation
  • The identity cropping area of a photo edit model.

    Declaration

    Swift

    public class var identityNormalizedCropRect: CGRect