public class ImageUtils extends Object
Constructor and Description |
---|
ImageUtils() |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
buildScaledBitmap(Drawable drawable,
int maxWidth,
int maxHeight)
Convert a drawable to a bitmap, scaled to fit within maxWidth and maxHeight.
|
boolean |
isGrayscale(Bitmap bitmap)
Checks whether a bitmap is grayscale.
|
static boolean |
isGrayscale(int color)
Classifies a color as grayscale or not.
|
public boolean isGrayscale(Bitmap bitmap)
public static boolean isGrayscale(int color)