ImageSources

Factories of ImageSource instances backed by an encoded image (JPEG, PNG or WebP) that is decoded one region at a time.

Functions

Link copied to clipboard

Creates an image source from an asset.

Link copied to clipboard

Creates an image source from an encoded image held in memory.

Link copied to clipboard

Creates an image source from a file.

Link copied to clipboard

Creates an image source from a raw drawable resource.

Link copied to clipboard
fun fromUri(contentResolver: ContentResolver, uri: Uri): ImageSource

Creates an image source from a content URI.