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