java代码将#000000十六进制转换成Color对象参数

int i =   Integer.parseInt(st.substring(1),16);




st即为十六进制颜色码对象

猜你喜欢

转载自www.cnblogs.com/xiao1993/p/12807942.html