Builder

Builder for the ImageExtensionImpl.

class Builder(imageId: String)

Constructors

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

Functions

bitmap
Link copied to clipboard

Set bitmap data of the image.

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

Build the ImagePluginImpl.

fun build(): ImageExtensionImpl
content
Link copied to clipboard

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.

fun content(content: ImageContent): ImageExtensionImpl.Builder
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
image
Link copied to clipboard

Pixel data of the image.

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

Scale factor for the image.

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

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

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

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.

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

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.

fun stretchY(stretchY: List<ImageStretches>): ImageExtensionImpl.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

imageId
Link copied to clipboard

ID of the image.

val imageId: String