skiaMain.com.seiko.imageloader.component.SetupComponents.skia.kt Maven / Gradle / Ivy
package com.seiko.imageloader.component
import androidx.compose.ui.unit.Density
import com.seiko.imageloader.component.decoder.GifDecoder
import com.seiko.imageloader.component.decoder.SkiaImageDecoder
import com.seiko.imageloader.component.decoder.SvgDecoder
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
fun ComponentRegistryBuilder.setupSkiaComponents(
imageScope: CoroutineScope = CoroutineScope(Dispatchers.Main),
density: Density = Density(2f),
) {
// Decoders
add(SvgDecoder.Factory(density))
add(GifDecoder.Factory(imageScope))
add(SkiaImageDecoder.Factory())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy