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)

Options for loading image from path.

Constructors

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

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

Encryption mode.

Link copied to clipboard

Load mode.

Functions

Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JsonObject
Link copied to clipboard
fun toJsonString(config: ToJsonConfiguration = ToJsonConfiguration.default()): String