【发布时间】:2012-02-01 22:24:06
【问题描述】:
void changeColor(int a, int r, int g, int b){
String hex = + Integer.toHexString(a) + Integer.toHexString(r) +
Integer.toHexString(g) + Integer.toHexString(b);
int color = hex //Obviously this is a type mismatch, but how do I do this?
mpaint.setColor(color);
}
显然这是类型不匹配,但我该怎么做呢?
【问题讨论】: