Style Image
fun StyleImage(imageId: String, imageBitmap: ImageBitmap, scale: Float? = null, sdf: Boolean = false, stretchX: List<ImageStretches> = listOf(), stretchY: List<ImageStretches> = listOf(), content: ImageContent? = null)
Construct a StyleImage with ImageBitmap.
Parameters
image Id
the id of the image
image Bitmap
the imageBitmap to be used in the style image
scale
scale factor for the image
sdf
option to treat whether image is SDF(signed distance field) or not
stretch X
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.
stretch Y
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.
content
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.