public class ColorUtil
extends java.lang.Object
Constructor and Description |
---|
ColorUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getOpacityFromColor(int color)
Gets the opacity from a color.
|
static int |
multiplyColorAlpha(int color,
int alpha)
Multiplies the color with the given alpha.
|
public static int multiplyColorAlpha(int color, int alpha)
color
- color to be multipliedalpha
- value between 0 and 255public static int getOpacityFromColor(int color)