#include using namespace std; int main(){ //Creating in with argb values from 0 to 255 int argb = (255&0xff) + //ALPHA ((200&0xff)<<8) + //RED ((150&0xff)<<16) + //GREEN ((100&0xff)<<24); //BLUE cout << "ALPHA = " << (argb&0xff) << endl; cout << "RED = " << ((argb>>8)&0xff) << endl; cout << "GREEN = " << ((argb>>16)&0xff) << endl; cout << "BLUE = " << ((argb>>24)&0xff) << endl; cin.get(); return 0; }