Builder

Builder for the ImageNinePatchExtensionImpl.

class Builder(imageId: String, bitmap: Bitmap)

Constructors

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

Functions

build
Link copied to clipboard

Build the ImageNinePatchExtensionImpl.

fun build(): ImageNinePatchExtensionImpl
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
scale
Link copied to clipboard

Scale factor for the image.

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

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

fun sdf(sdf: Boolean): ImageNinePatchExtensionImpl.Builder
toString
Link copied to clipboard
open override fun toString(): String

Properties

bitmap
Link copied to clipboard

Actual 9-patch bitmap.

val bitmap: Bitmap
imageId
Link copied to clipboard

ID of the image.

val imageId: String