All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.seiko.imageloader.request.Options.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package com.seiko.imageloader.request

import com.seiko.imageloader.cache.CachePolicy
import com.seiko.imageloader.size.Scale
import com.seiko.imageloader.size.Size

class Options(
    val allowInexactSize: Boolean = false,
    val premultipliedAlpha: Boolean = true,
    val config: ImageConfig = ImageConfig.ARGB_8888,
    val size: Size = Size.ORIGINAL,
    val scale: Scale = Scale.FIT,
    val memoryCachePolicy: CachePolicy = CachePolicy.ENABLED,
    val diskCachePolicy: CachePolicy = CachePolicy.ENABLED,
) {
    enum class ImageConfig {
        ALPHA_8,
        // RGB_565,
        // ARGB_4444,
        ARGB_8888,
        RGBA_F16,
        HARDWARE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy