Lines Matching defs:alpha
29 * Colors are represented as packed ints, made up of 4 bytes: alpha, red,
31 * stored solely in the alpha component, and not in the color components. The
32 * components are stored as follows (alpha << 24) | (red << 16) |
54 * Return the alpha component of a color int. This is the same as saying
57 public static int alpha(int color) {
87 * The alpha component is implicity 255 (fully opaque).
101 * Return a color-int from alpha, red, green, blue components.
105 * @param alpha Alpha component [0..255] of the color
111 public static int argb(int alpha, int red, int green, int blue) {
112 return (alpha << 24) | (red << 16) | (green << 8) | blue;
151 // Set the alpha value
188 * @param color the argb color to convert. The alpha component is ignored.
209 * Convert HSV components to an ARGB color. The alpha component is passed
215 * @param alpha the alpha component of the returned argb color.
219 public static int HSVToColor(int alpha, @Size(3) float hsv[]) {
223 return nativeHSVToColor(alpha, hsv);
227 private static native int nativeHSVToColor(int alpha, float hsv[]);