ImageAsset

@objcMembers
@objc(PESDKImageAsset)
open class ImageAsset : NSObject

An ImageAsset object can be used together with an AssetManager to cache an UIImage or a CIImage object and an optional user info dictionary.

  • An UIImage object.

    Declaration

    Swift

    open var image: UIImage?
  • An optional user info dictionary to associate any metadata with this ImageAsset.

    Declaration

    Swift

    open var userInfo: [String : Any]?
  • An CIImage object. If an UIImage was provided when initializing this ImageAsset instance, it will be generated from the given UIImage.

    Declaration

    Swift

    open var ciImage: CIImage? { get }
  • Creates a new image asset for the given image and an associated user info dictionary.

    Declaration

    Swift

    public convenience init(ciImage: CIImage, userInfo: [String: Any]? = nil)

    Parameters

    ciImage

    A CIImage object.

    userInfo

    An optional user info dictionary.

  • Creates a new image asset for the given image and an associated user info dictionary.

    Declaration

    Swift

    public convenience init(image: UIImage, userInfo: [String: Any]? = nil)

    Parameters

    image

    An UIImage object.

    userInfo

    An optional user info dictionary.