Package 

Object AvatarBitmapCombiner

  • All Implemented Interfaces:

    
    public class AvatarBitmapCombiner
    
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Bitmap combine(List<Bitmap> bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder) Combines a list of bitmaps with a specific bitmap size.
      final Bitmap combine(Bitmap bitmaps, @Px() Integer size, Integer maxSectionSize, Drawable errorPlaceholder) Combines a list of bitmaps with a specific bitmap size.
      final Bitmap drawableToBitmap(Drawable drawable, @Px() Integer size) Creates a Bitmap from a drawable with a specific size specs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.