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): <ERROR CLASS>
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): <ERROR CLASS>
An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
image
Link copied to clipboard
fun image(image: Image): <ERROR CLASS>
Pixel data of the image.
scale
Link copied to clipboard
fun scale(scale: Float): <ERROR CLASS>
Scale factor for the image.
sdf
Link copied to clipboard
fun sdf(sdf: Boolean = false): <ERROR CLASS>
Option to treat whether image is SDF(signed distance field) or not.
stretchX
Link copied to clipboard
fun stretchX(stretchX: List<ImageStretches> = listOf()): <ERROR CLASS>
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()): <ERROR CLASS>
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.
toString
Link copied to clipboard
open fun toString(): String

Properties

imageId
Link copied to clipboard
val imageId: String
ID of the image.