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)

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
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.
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.