I've 开发者_高级运维got int value (for red,green,blue) returned from a Web Service.
topR = 0.14
topG = 0.14
topB = 0.14
bottomR =0.62
bottomG =0.62
bottomB =0.62
From this value how to get color on blackberry.
Pls help me.
Maybe this is what your looking for
private int color = 0x00000000;
public void setColor(int r, int g, int b)
{
color = (255<<24) | (r<<16) | (g<<8) | b;
}
精彩评论