Nine Patch Image
data class NinePatchImage(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent)
Content copied to clipboard
Data class describing 9-patch bitmap.
Constructors
NinePatchImage
Link copied to clipboard
fun NinePatchImage(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
copy
Link copied to clipboard
fun copy(internalImage: Image, stretchX: List<ImageStretches>, stretchY: List<ImageStretches>, imageContent: ImageContent): NinePatchImage
Content copied to clipboard
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.
internalImage
Link copied to clipboard
Bitmap itself.
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.
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.