Adjacent Files

Project Info

. > library > src > main > java > james > adaptiveicon > utils >


Type: public static Bitmap

Converts a drawable to a bitmap

Parameter Name Description
drawable a drawable

Returned Value: a bitmap


Type: public static boolean

Iterates through each pixel in a Bitmap and determines whether it has any transparent parts.

Parameter Name Description
bitmap a bitmap

Returned Value: true if any part of the bitmap is transparent


Type: public static Bitmap

Removes the shadow (and any other transparent parts) from a bitmap.

Parameter Name Description
bitmap the original bitmap

Returned Value: the bitmap with the shadow removed


Type: @ColorInt public static int

Finds the color with the most occurrences inside of a bitmap.

Parameter Name Description
bitmap the bitmap to get the dominant color of

Returned Value: the dominant color