for(x=0;x<w*h;x++){
int alpha=cm.getAlpha(pixels[x]);
int red=255-cm.getRed(pixels[x]);
int green=255-cm.getGreen(pixels[x]);
int blue=255-cm.getBlue(pixels[x]);
pixels[x]=alpha<<24|red<<16|green<<8|blue;
}
请问这些语句是什么意思,特别是最后一句,thank you!
int alpha=cm.getAlpha(pixels[x]);
int red=255-cm.getRed(pixels[x]);
int green=255-cm.getGreen(pixels[x]);
int blue=255-cm.getBlue(pixels[x]);
pixels[x]=alpha<<24|red<<16|green<<8|blue;
}
请问这些语句是什么意思,特别是最后一句,thank you!
Alpha是Alpha通道值。每一个值取值范围是0-255,颜色的最终值由这几个值组成,每一个值在最终值中有不同的位权。
Alpha是Alpha通道值。每一个值取值范围是0-255,颜色的最终值由这几个值组成,每一个值在最终值中有不同的位权。调色版初始化颜色样本