sdk-maps / com.tomtom.online.sdk.map.style.images / ImageFactory

ImageFactory

@Beta(2020, 12) open class ImageFactory

The factory class that allows the creation of a style image.

Constructors

<init>

ImageFactory()

The factory class that allows the creation of a style image.

Functions

createImage

open static fun createImage(id: String!, bitmap: Bitmap): Image!

Creates an image based on a provided bitmap.

open static fun createImage(id: String!, drawable: Drawable): Image!

Creates an image based on a provided drawable.

nativeCreateImage

open static fun nativeCreateImage(id: String!, width: Int, height: Int, data: ByteArray!): Image!