Lines Matching refs:alpha
48 int bgAlpha = Color.alpha(background);
49 int fgAlpha = Color.alpha(foreground);
91 if (Color.alpha(background) != 255) {
95 if (Color.alpha(foreground) < 255) {
108 * Calculates the minimum alpha value which can be applied to {@code foreground} so that would
115 * @return the alpha value in the range 0-255, or -1 if no value could be calculated
119 if (Color.alpha(background) != 255) {
217 * @param color the ARGB color to convert. The alpha component is ignored
292 * Set the alpha component of {@code color} to be {@code alpha}.
296 @IntRange(from = 0x0, to = 0xFF) int alpha) {
297 if (alpha < 0 || alpha > 255) {
298 throw new IllegalArgumentException("alpha must be between 0 and 255.");
300 return (color & 0x00ffffff) | (alpha << 24);
306 * @param color the ARGB color to convert. The alpha component is ignored
349 * @param color the ARGB color to convert. The alpha component is ignored
544 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio;