Package 

Object AvatarBitmapCombiner


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

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