Method getRGB()
Return type: int
Member of:
java.awt.Color
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
transparent = c.getRGB()&0xffffff;
2
fgColor = color.getRGB();
3
storeInt(section, key, value.getRGB());
4
String result = Integer.toHexString((color.getRGB() & 0xffffff));
5
int rgba = color.getRGB();
6
return "#" + Integer.toHexString(_fColor.getRGB()).substring(2);
7
return "#" + Integer.toHexString(_bgColor.getRGB()).substring(2);
8
setBackground(northPanel, new Color(back.getRGB()));
9
c = new Color(c.getRGB() + factor().getRGB());
10
int cmap[] = { backColor.getRGB(), topColor.getRGB(), shadowColor.getRGB()};
11
int fcRGB = foreColor.getRGB();
12
if (_lights[direction][i].getRGB() != Color.black.getRGB())
13
defaults.put("color.base.background1", "#"+ Integer.toHexString((bg.getRGB() & 0xffffff)));
14
g2.setColor(new Color(~bg.getRGB()));
15
int rgb = color.getRGB();
16
int f = foreground.getRGB();
17
"0x" + Integer.toHexString(mix.getRGB() & 0xffFFff));
18
txt.setAttribute("color",(StyleConstants.getForeground(attributeSet)).getRGB()+"");
19
if (element.getForecolor().getRGB() != Color.black.getRGB())
20
System.out.println(names[i] + " = " + colors[i] + " RGB=" + colors[i].getRGB()
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.