ImageFactory

Factory responsible for creating an Image from different sources.

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.