ImageRegionDecoder

An image decoder, responsible for loading partial regions for SubSamplingImage's tiles.

Also see: AndroidImageRegionDecoder and PooledAndroidImageRegionDecoder.

Types

Link copied to clipboard
class DecodeResult(val painter: Painter, val hasUltraHdrContent: Boolean)
Link copied to clipboard
fun interface Factory
Link copied to clipboard
interface FactoryParams

Properties

Link copied to clipboard
abstract val imageSize: IntSize

Size of the full image, without any scaling applied.

Functions

Link copied to clipboard
open fun close()

Called when the image is no longer visible.

Link copied to clipboard
abstract suspend fun decodeRegion(region: IntRect, sampleSize: Int): ImageRegionDecoder.DecodeResult

Decodes a specific region of the image.