Package-level declarations

Types

Link copied to clipboard

Metadata containing the filePath of an Android asset.

Link copied to clipboard
class BitmapFactoryDecoder(source: ImageSource, options: Options, parallelismLock: Semaphore = Semaphore(Int.MAX_VALUE), exifOrientationStrategy: ExifOrientationStrategy = RESPECT_PERFORMANCE) : Decoder

The base Decoder that uses BitmapFactory to decode a given ImageSource.

Link copied to clipboard
class BlackholeDecoder(imageFactory: () -> Image) : Decoder

A Decoder that ignores the SourceFetchResult and always returns the Image returned by imageFactory.

Link copied to clipboard

Metadata containing the underlying ByteBuffer of the ImageSource.

Link copied to clipboard
class ContentMetadata(val uri: Uri, val assetFileDescriptor: AssetFileDescriptor) : ImageSource.Metadata

Metadata containing the uri and associated assetFileDescriptor of a content URI.

Link copied to clipboard

Represents the source that an image was loaded from.

Link copied to clipboard
fun interface Decoder
Link copied to clipboard
class DecodeResult(val image: Image, val isSampled: Boolean)

The result of Decoder.decode.

Link copied to clipboard

A collection of useful utility methods for decoding images.

Link copied to clipboard

Specifies the strategy for handling the EXIF orientation flag.

Link copied to clipboard
sealed interface ImageSource : AutoCloseable

Provides access to the image data to be decoded.

Link copied to clipboard
class ResourceMetadata(val packageName: String, @DrawableRes val resId: Int, val density: Int) : ImageSource.Metadata

Metadata containing the packageName, resId, and density of an Android resource.

Link copied to clipboard
class SkiaImageDecoder(source: ImageSource, options: Options) : Decoder
Link copied to clipboard
@RequiresApi(value = 29)
class StaticImageDecoder(source: ImageDecoder.Source, closeable: AutoCloseable, options: Options, parallelismLock: Semaphore) : Decoder

Functions

Link copied to clipboard
fun ImageSource(source: BufferedSource, fileSystem: FileSystem, metadata: ImageSource.Metadata? = null): ImageSource

Create a new ImageSource backed by a BufferedSource.

fun ImageSource(file: Path, fileSystem: FileSystem, diskCacheKey: String? = null, closeable: AutoCloseable? = null, metadata: ImageSource.Metadata? = null): ImageSource

Create a new ImageSource backed by a Path.