If you mask the data and shift.
I am presuming green is the FF in your example.
//Make bitmask of 1's where you want to keep the bits, make rest 0's
foo= 0xA0FF0B04 & 0x00FF0000
// then shift appropriate bit positions to get down to a standard integral number.
green=foo >> 16;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.