【发布时间】:2014-03-14 00:28:58
【问题描述】:
我有使用这个的 RGB 值:
int pixel = image[x][y];
red = ((pixel & 0xff0000) >> 16);
green = ((pixel & 0x00ff00) >> 8);
blue = (pixel & 0x0000ff);
然后我修改红色、绿色和蓝色。
如何用新值构造一个新像素?
【问题讨论】:
-
要重建像素的值,只需执行相反的操作。到目前为止,您尝试过哪些不起作用的方法?
标签: c++ image image-processing pixel