NinePatchImage

Data class describing 9-patch bitmap.

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

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): Image
component2
Link copied to clipboard
operator fun component2(): List<ImageStretches>
component3
Link copied to clipboard
operator fun component3(): List<ImageStretches>
component4
Link copied to clipboard
operator fun component4(): ImageContent
copy
Link copied to clipboard
fun copy(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent): NinePatchImage
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

imageContent
Link copied to clipboard

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.

val imageContent: ImageContent
internalImage
Link copied to clipboard

Bitmap itself.

val internalImage: Image
stretchX
Link copied to clipboard

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.

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

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.

val stretchY: List<ImageStretches>