I am trying to create ARGB pixel, I have seen this example:
int createPixel(int r, int g, int b, int a)
{
return (a<<24) | (r<<16) | (g<<8) | (b<<0);
}
For understanding I would like get answers to this questions:
- What am getting as result (return)?
- What is << means?
- If value of each color is 255, so for RED 16 is 255 and 23 is 0?