Builder

class Builder(imageId: String, bitmap: Bitmap)

Builder for the ImageNinePatchExtensionImpl.

Constructors

Builder
Link copied to clipboard
fun Builder(imageId: String, bitmap: Bitmap)

Functions

build
Link copied to clipboard
fun build(): ImageNinePatchExtensionImpl

Build the ImageNinePatchExtensionImpl.

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

Scale factor for the image.

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

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

Properties

bitmap
Link copied to clipboard
val bitmap: Bitmap

Actual 9-patch bitmap.

imageId
Link copied to clipboard
val imageId: String

ID of the image.