I take the red component of the color in this way:
int clr = needlePixels[i]; int red = (clr & 0x00ff0000) >> 16; Then I perform some actions on the bits of the red variable. How to write the modified color component back to the variable clr ?
I take the red component of the color in this way:
int clr = needlePixels[i]; int red = (clr & 0x00ff0000) >> 16; Then I perform some actions on the bits of the red variable. How to write the modified color component back to the variable clr ?
Source: https://ru.stackoverflow.com/questions/509370/
All Articles