setBackgroundColor [2/2]
设置背景色 RGB。
public void setBackgroundColor(int red, int green, int blue) { this.backgroundColor = (red << 16) | (green << 8) | (blue << 0); }
参数
- red
- 红。
- green
- 绿。
- blue
- 蓝。
设置背景色 RGB。
public void setBackgroundColor(int red, int green, int blue) { this.backgroundColor = (red << 16) | (green << 8) | (blue << 0); }