我有一些颜色,编码为 RGB
格式:121E31 hex
.我该怎么做 通这个颜色到 Java的Color
类(class) ?
最佳答案
这通常使用 decode 完成:
Color color = Color.decode("0x121E31");
关于java - 将 RGB 颜色传递给 .setBackgroundColor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15626628/