Java Utililty Methods Color Combine

List of utility methods to do Color Combine

Description

The list of methods to do Color Combine are organized into topic(s).

Method

intcombine(int r, int g, int b)
combine
int rgb = (r & 0xFF) << 16 | (g & 0xFF) << 8 | b & 0xFF;
return rgb;
intcombine(int r, int g, int b, int a)
Combines the R,G,B,A values back into single integer.
return (r << 16) + (g << 8) + (b << 0) + (a << 24);
intcombineColors(int fgColor, int bgColor, int pctFg)
combine Colors
int resColor = 0;
if (pctFg < 1) {
    resColor = bgColor;
} else if (pctFg == 100) {
    resColor = fgColor;
} else {
    int pctBg = 100 - pctFg;
    resColor =
...