ImageFactory

Factory responsible for creating an Image from different sources.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
fun fromAssets(fileName: String): Image

Creates an Image from an application asset.

Link copied to clipboard
fun fromBitmap(bitmap: Bitmap): Image

Creates an Image from a bitmap.

Link copied to clipboard

Creates an Image from resources.

Link copied to clipboard
fun fromUri(uri: Uri): Image

Creates an Image from a Uri.