PhotoEffectThumbnailRenderer

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKPhotoEffectThumbnailRenderer)
open class PhotoEffectThumbnailRenderer : NSObject

A PhotoEffectThumbnailRenderer can be used to generate thumbnails of a given input image for multiple photo effects.

  • The input image that will be used to generate the thumbnails.

    Declaration

    Swift

    public let inputImage: UIImage
  • Creates a photo effect thumbnail renderer with the given input image.

    Declaration

    Swift

    public init(inputImage: UIImage)

    Parameters

    inputImage

    The input image that will be used to generate the thumbnails.

    Return Value

    A newly initialized PhotoEffectThumbnailRenderer object.

  • Generates thumbnails for multiple photo effects of the given size.

    Declaration

    Swift

    @objc(generateThumbnailsForPhotoEffects:ofSize:singleCompletion:)
    open func generateThumbnails(for photoEffects: [PhotoEffect], of size: CGSize, singleCompletion: @escaping ((_ thumbnail: UIImage, _ effect: PhotoEffect) -> Void))

    Parameters

    photoEffects

    The photo effects that should be used to generate thumbnails.

    size

    The size of the thumbnails.

    singleCompletion

    This handler will be called for each thumbnail that has been created successfully.