Class SaveImageOptions
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SaveImageOptions implements Parcelable
Options for saving image to a path.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
quality
private EncryptionMode
encryptionMode
-
Constructor Summary
Constructors Constructor Description SaveImageOptions(Map<String, Object> source)
SaveImageOptions(JSONObject json)
SaveImageOptions(Integer quality, EncryptionMode encryptionMode)
-
Method Summary
Modifier and Type Method Description final Integer
getQuality()
Quality parameter is for jpeg only and is in range 0 to 100. final Unit
setQuality(Integer quality)
Quality parameter is for jpeg only and is in range 0 to 100. final EncryptionMode
getEncryptionMode()
Encryption mode. final Unit
setEncryptionMode(EncryptionMode encryptionMode)
Encryption mode. final JSONObject
toJson(ToJsonConfiguration config)
final SaveImageOptions
clone()
final static SaveImageOptions
default()
-
-
-
Constructor Detail
-
SaveImageOptions
SaveImageOptions(JSONObject json)
-
SaveImageOptions
SaveImageOptions(Integer quality, EncryptionMode encryptionMode)
-
-
Method Detail
-
getQuality
final Integer getQuality()
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.
Default is -1
-
setQuality
final Unit setQuality(Integer quality)
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.
Default is -1
-
getEncryptionMode
final EncryptionMode getEncryptionMode()
Encryption mode.
Default is IF_AVAILABLE
-
setEncryptionMode
final Unit setEncryptionMode(EncryptionMode encryptionMode)
Encryption mode.
Default is IF_AVAILABLE
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final SaveImageOptions clone()
-
default
final static SaveImageOptions default()
-
-