MvtAtlasIconFactory

actual class MvtAtlasIconFactory(val atlas: MvtSpriteAtlas, val entry: MvtSpriteEntry) : ImageSource.ImageFactory

Platform-specific ImageSource.ImageFactory that decodes the atlas PNG once (cached by atlas-identity) and crops the requested sub-rect on demand.

JVM uses javax.imageio.ImageIO + BufferedImage.getSubimage; Android uses BitmapFactory.decodeByteArray + Bitmap.createBitmap. iOS and JS implementations are stubs that log a one-time warning and return null — icons will be silently skipped on those platforms until the full crop path lands. (Full implementations require platform image-decoder integration that's outside the scope of this commit.)

Platform-specific ImageSource.ImageFactory that decodes the atlas PNG once (cached by atlas-identity) and crops the requested sub-rect on demand.

JVM uses javax.imageio.ImageIO + BufferedImage.getSubimage; Android uses BitmapFactory.decodeByteArray + Bitmap.createBitmap. iOS and JS implementations are stubs that log a one-time warning and return null — icons will be silently skipped on those platforms until the full crop path lands. (Full implementations require platform image-decoder integration that's outside the scope of this commit.)

actual class MvtAtlasIconFactory(val atlas: MvtSpriteAtlas, val entry: MvtSpriteEntry) : ImageSource.ImageFactory

Platform-specific ImageSource.ImageFactory that decodes the atlas PNG once (cached by atlas-identity) and crops the requested sub-rect on demand.

JVM uses javax.imageio.ImageIO + BufferedImage.getSubimage; Android uses BitmapFactory.decodeByteArray + Bitmap.createBitmap. iOS and JS implementations are stubs that log a one-time warning and return null — icons will be silently skipped on those platforms until the full crop path lands. (Full implementations require platform image-decoder integration that's outside the scope of this commit.)

actual class MvtAtlasIconFactory(val atlas: MvtSpriteAtlas, val entry: MvtSpriteEntry) : ImageSource.ImageFactory

Platform-specific ImageSource.ImageFactory that decodes the atlas PNG once (cached by atlas-identity) and crops the requested sub-rect on demand.

JVM uses javax.imageio.ImageIO + BufferedImage.getSubimage; Android uses BitmapFactory.decodeByteArray + Bitmap.createBitmap. iOS and JS implementations are stubs that log a one-time warning and return null — icons will be silently skipped on those platforms until the full crop path lands. (Full implementations require platform image-decoder integration that's outside the scope of this commit.)

actual class MvtAtlasIconFactory(val atlas: MvtSpriteAtlas, val entry: MvtSpriteEntry) : ImageSource.ImageFactory

Platform-specific ImageSource.ImageFactory that decodes the atlas PNG once (cached by atlas-identity) and crops the requested sub-rect on demand.

JVM uses javax.imageio.ImageIO + BufferedImage.getSubimage; Android uses BitmapFactory.decodeByteArray + Bitmap.createBitmap. iOS and JS implementations are stubs that log a one-time warning and return null — icons will be silently skipped on those platforms until the full crop path lands. (Full implementations require platform image-decoder integration that's outside the scope of this commit.)

Constructors

Link copied to clipboard
actual constructor(atlas: MvtSpriteAtlas, entry: MvtSpriteEntry)
expect constructor(atlas: MvtSpriteAtlas, entry: MvtSpriteEntry)
actual constructor(atlas: MvtSpriteAtlas, entry: MvtSpriteEntry)
actual constructor(atlas: MvtSpriteAtlas, entry: MvtSpriteEntry)
actual constructor(atlas: MvtSpriteAtlas, entry: MvtSpriteEntry)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
actual val atlas: MvtSpriteAtlas
expect val atlas: MvtSpriteAtlas
actual val atlas: MvtSpriteAtlas
actual val atlas: MvtSpriteAtlas
actual val atlas: MvtSpriteAtlas
Link copied to clipboard
actual val entry: MvtSpriteEntry
expect val entry: MvtSpriteEntry
actual val entry: MvtSpriteEntry
actual val entry: MvtSpriteEntry
actual val entry: MvtSpriteEntry
isRunBlocking
Link copied to clipboard

Bitmap factory runs asynchronously by default, but this behavior can be changed by overriding current attribute.

Image factory runs asynchronously by default, but this behavior can be changed by overriding current attribute.

Functions

Link copied to clipboard
open suspend override fun createBitmap(): Bitmap?

Returns the bitmap associated with this factory. This method may be called more than once and may be called from a non-UI thread. Each invocation must return a bitmap with equivalent content, dimensions and configuration. Any side effects applied to the WorldWind scene by the factory must be executed on the main thread.
The factory must not retain any reference to the returned bitmap and must not attempt to recycle the bitmap.

createImage
Link copied to clipboard
open suspend override fun createImage(): UIImage?
open suspend override fun createImage(): BufferedImage?

Returns the image associated with this factory. This method may be called more than once and may be called from a non-UI thread. Each invocation must return an image with equivalent content, dimensions and configuration. Any side effects applied to the WorldWind scene by the factory must be executed on the main thread.

open suspend override fun createImage(): TexImageSource?

Returns the image associated with this factory. This method may be called more than once and may be called from a non-UI thread. Each invocation must return an image with equivalent content, dimensions and configuration. Any side effects applied to the WorldWind scene by the factory must be executed on the main thread.