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 anUIImage
was provided when initializing thisImageAsset
instance, it will be generated from the givenUIImage
.Declaration
Swift
open var ciImage: CIImage? { get }
-
An oriented
CIImage
object. If anUIImage
was provided when initializing thisImageAsset
instance, it will be generated from the givenUIImage
.Declaration
Swift
open var orientedCIImage: 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.