public class PaintUtil
extends java.lang.Object
Color
and
Paint
.Modifier and Type | Method and Description |
---|---|
static void |
changePaint(android.graphics.Paint paint,
int argb)
Changes the paint color to the specified value.
|
static void |
changePaintTransparent(android.graphics.Paint paint)
Changes the paint color to transparent
|
public static void changePaint(android.graphics.Paint paint, int argb)
paint
- the object to mutate with the new colorargb
- a 32-bit integer with eight bits for alpha, red, green, and blue,
respectivelypublic static void changePaintTransparent(android.graphics.Paint paint)
paint
- the object to mutate with the new color