I have RGB values using this:
int pixel = image[x][y];
red = ((pixel & 0xff0000) >> 16);
green = ((pixel & 0x00ff00) >> 8);
blue = (pixel & 0x0000ff);
Then I modify red, green and blue.
How do I construct a new pixel with the new values?
I have RGB values using this:
int pixel = image[x][y];
red = ((pixel & 0xff0000) >> 16);
green = ((pixel & 0x00ff00) >> 8);
blue = (pixel & 0x0000ff);
Then I modify red, green and blue.
How do I construct a new pixel with the new values?