JAVA设计一个pixel类,表示屏幕上的像素,并运行测试
答案:1 悬赏:30
解决时间 2021-02-22 11:18
- 提问者网友:聂風
- 2021-02-22 00:47
JAVA设计一个pixel类,表示屏幕上的像素,并运行测试
最佳答案
- 二级知识专家网友:痴妹与他
- 2021-02-22 01:18
intc = pixels[index];// orpixels[x * width + y]
intred = (c & 0x00ff0000) >> 16;
intgreen = (c & 0x0000ff00) >> 8;
intblue = c & 0x000000ff;
// and the Java Color is ...
Color color = new Color(red,green,blue);
追问:我是初学者,能否更完整基础些
intred = (c & 0x00ff0000) >> 16;
intgreen = (c & 0x0000ff00) >> 8;
intblue = c & 0x000000ff;
// and the Java Color is ...
Color color = new Color(red,green,blue);
追问:我是初学者,能否更完整基础些
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯