AvatarBitmapCombiner

object AvatarBitmapCombiner

A bitmap combiner to provide segmented style bitmap from a list of bitmaps. This combiner supports a maximum of 4 combined bitmaps.

Functions

Link copied to clipboard
fun combine(vararg bitmaps: Bitmap?, @Px size: Int, maxSectionSize: Int, errorPlaceholder: Drawable? = null): Bitmap
fun combine(bitmaps: List<Bitmap?>, @Px size: Int, maxSectionSize: Int, errorPlaceholder: Drawable? = null): Bitmap

Combines a list of bitmaps with a specific bitmap size.

Link copied to clipboard
fun drawableToBitmap(drawable: Drawable?, @Px size: Int): Bitmap?

Creates a Bitmap from a drawable with a specific size specs.