-
public class AvatarBitmapCombinerA bitmap combiner to provide segmented style bitmap from a list of bitmaps. This combiner supports a maximum of 4 combined bitmaps.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AvatarBitmapCombinerINSTANCE
-
Method Summary
Modifier and Type Method Description final Bitmapcombine(List<Bitmap> bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder)Combines a list of bitmaps with a specific bitmap size. final Bitmapcombine(Bitmap bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder)Combines a list of bitmaps with a specific bitmap size. final BitmapdrawableToBitmap(Drawable drawable, @Px() Integer size)Creates a Bitmap from a drawable with a specific size specs. -
-
Method Detail
-
combine
final Bitmap combine(List<Bitmap> bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder)
Combines a list of bitmaps with a specific bitmap size.
- Parameters:
bitmaps- A list of bitmaps to combine.size- A size of the bitmap.maxSectionSize- The maximum size of the sections.
-
combine
final Bitmap combine(Bitmap bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder)
Combines a list of bitmaps with a specific bitmap size.
- Parameters:
bitmaps- A list of bitmaps to combine.size- A size of the bitmap.maxSectionSize- The maximum size of the sections.
-
drawableToBitmap
final Bitmap drawableToBitmap(Drawable drawable, @Px() Integer size)
Creates a Bitmap from a drawable with a specific size specs.
- Parameters:
drawable- A drawable should be created as Bitmap.size- A desired of the new Bitmap.
-
-
-
-