Save Image Options
data class SaveImageOptions(var quality: Int = -1, var encryptionMode: EncryptionMode = EncryptionMode.AUTO, var encrypter: CoreStreamProvider? = null) : Parcelable
Options for saving image to a path.
Constructors
Link copied to clipboard
constructor(quality: Int = -1, encryptionMode: EncryptionMode = EncryptionMode.AUTO, encrypter: CoreStreamProvider? = null)
Properties
Link copied to clipboard
Custom encrypter to use when saving the image if the encryptionMode implies encryption must be used.
Link copied to clipboard
Encryption mode.
Link copied to clipboard
Quality parameter is for jpeg only and is in range 0 to 100. If -1, then settings from hibernation are used. In case when the Image Ref was created with a lazy load mode and originally has the same format as the requested to save, then setting quality to -1 leads to simply copying from source to destination, which is time efficient and prevents quality loss caused by jpeg encoding/decoding.