BufferImageLoadOptions

data class BufferImageLoadOptions(var cropRect: Rect = Rect(), var colorConversion: ColorConversion = ColorConversion.ANY_COLOR, var canvasColor: CanvasColor = CanvasColor.WHITE, var loadMode: BufferLoadMode = BufferLoadMode.EAGER) : Parcelable

Options for loading image from buffer.

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: BufferLoadMode = BufferLoadMode.EAGER)

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

Load mode.

Functions

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