Skip to content

EditingStack

PingAK9 edited this page Nov 26, 2020 · 1 revision

EditingStack

open class EditingStack

Initializers

init(source:previewSize:screenScale:)

public init(source: ImageSourceType, previewSize: CGSize, screenScale: CGFloat = UIScreen.main.scale)

Properties

source

let source: ImageSourceType

delegate

var delegate: EditingStackDelegate?

preferredPreviewSize

let preferredPreviewSize: CGSize

targetScreenScale

let targetScreenScale: CGFloat

previewImage

var previewImage: CIImage?

originalPreviewImage

var originalPreviewImage: CIImage?

adjustmentImage

var adjustmentImage: CIImage?

aspectRatio

var aspectRatio: CGSize?

isDirty

var isDirty: Bool

canUndo

var canUndo: Bool

draftEdit

var draftEdit: Edit?

currentEdit

var currentEdit: Edit

edits

var edits: [Edit]

Methods

initialCrop()

open func initialCrop()

requestApplyingFilterImage()

public func requestApplyingFilterImage() -> CIImage

commit()

public func commit()

revert()

public func revert()

undo()

public func undo()

removeAllHistory()

public func removeAllHistory()

set(filters:)

public func set(filters: (inout Edit.Filters) -> Void)

setAdjustment(cropRect:)

public func setAdjustment(cropRect: CGRect)

set(blurringMaskPaths:)

public func set(blurringMaskPaths: [DrawnPathInRect])

makeRenderer()

public func makeRenderer() -> ImageRenderer
Clone this wiki locally