NinePatchImage

data class NinePatchImage(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent)

Data class describing 9-patch bitmap.

Constructors

NinePatchImage
Link copied to clipboard
fun NinePatchImage(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent)

Properties

imageContent
Link copied to clipboard
val imageContent: ImageContent

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.

internalImage
Link copied to clipboard
val internalImage: Image

Bitmap itself.

stretchX
Link copied to clipboard
val stretchX: List<ImageStretches>

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
val stretchY: List<ImageStretches>

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.