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.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
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.
toString
Link copied to clipboard
open fun toString(): String

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.