Builder

class Builder(imageId: String)

Builder for the ImageExtensionImpl.

Constructors

Builder
Link copied to clipboard
fun Builder(imageId: String)

Functions

bitmap
Link copied to clipboard
fun bitmap(bitmap: Bitmap): ImageExtensionImpl.Builder

Set bitmap data of the image.

build
Link copied to clipboard
fun build(): ImageExtensionImpl

Build the ImagePluginImpl.

content
Link copied to clipboard
fun content(content: ImageContent): ImageExtensionImpl.Builder

An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner. If present, and if the icon uses icon-text-fit, the symbol's text will be fit inside the content box.

image
Link copied to clipboard
fun image(image: Image): ImageExtensionImpl.Builder

Pixel data of the image.

scale
Link copied to clipboard
fun scale(scale: Float): ImageExtensionImpl.Builder

Scale factor for the image.

sdf
Link copied to clipboard
fun sdf(sdf: Boolean = false): ImageExtensionImpl.Builder

Option to treat whether image is SDF(signed distance field) or not.

stretchX
Link copied to clipboard
fun stretchX(stretchX: List<ImageStretches> = listOf()): ImageExtensionImpl.Builder

An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched horizontally.

stretchY
Link copied to clipboard
fun stretchY(stretchY: List<ImageStretches> = listOf()): ImageExtensionImpl.Builder

An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched vertically.

Properties

imageId
Link copied to clipboard
val imageId: String

ID of the image.