PathImageLoadOptions

data class PathImageLoadOptions(var cropRect: Rect = Rect(), var colorConversion: ColorConversion = ColorConversion.ANY_COLOR, var canvasColor: CanvasColor = CanvasColor.WHITE, var loadMode: PathLoadMode = PathLoadMode.EAGER, var encryptionMode: EncryptionMode = EncryptionMode.AUTO, var decrypter: CoreStreamProvider? = null) : Parcelable

Options for loading image from path.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(cropRect: Rect = Rect(), colorConversion: ColorConversion = ColorConversion.ANY_COLOR, canvasColor: CanvasColor = CanvasColor.WHITE, loadMode: PathLoadMode = PathLoadMode.EAGER, encryptionMode: EncryptionMode = EncryptionMode.AUTO, decrypter: CoreStreamProvider? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

CanvasColor color to use when converting images with alpha channel to images without alpha channel.

Link copied to clipboard

Color conversion to apply during image loading.

Link copied to clipboard

If the rect is not empty, the image will be cropped to this rect before processing.

Link copied to clipboard

Custom decrypter to use when loading the image if the encryptionMode implies encryption must be used.

Link copied to clipboard

Encryption mode.

Link copied to clipboard

Load mode.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject