SamplingDecoder
class SamplingDecoder(decoder: RegionDecoder, rotation: SamplingDecoder.Rotation = Rotation.ROTATION_0, onRelease: () -> Unit = {}, thumbnails: ImageBitmap? = null) : CoroutineScope
用以提供SamplingCanvas显示大型图片,rememberSamplingDecoder,createSamplingDecoder
Parameters
thumbnails
默认显示的缓存图片,图片未完成加载时可用于显示占位
Constructors
Link copied to clipboard
constructor(decoder: RegionDecoder, rotation: SamplingDecoder.Rotation = Rotation.ROTATION_0, onRelease: () -> Unit = {}, thumbnails: ImageBitmap? = null)