StyleImageInfo

data class StyleImageInfo(val width: UInt, val height: UInt, val pixels: ByteArray, val stretchX: List<ImageStretch>, val stretchY: List<ImageStretch>, val content: ImageContent?, val textFitWidth: StyleImageTextFit?, val textFitHeight: StyleImageTextFit?, val pixelRatio: Float, val sdf: Boolean, val keepUnused: Boolean)

An image in the map's style.

See mln_style_image_info in the C API reference.

Constructors

Link copied to clipboard
constructor(width: UInt, height: UInt, pixels: ByteArray, stretchX: List<ImageStretch>, stretchY: List<ImageStretch>, content: ImageContent?, textFitWidth: StyleImageTextFit?, textFitHeight: StyleImageTextFit?, pixelRatio: Float, sdf: Boolean, keepUnused: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getHeight")
val height: UInt
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The premultiplied RGBA pixels, in rows of width * 4 bytes, from the top row down.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getWidth")
val width: UInt

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int