Raphael Wimmer <raphael.wimmer@medien.ifi.lmu.de>
int rgba, ch; /* retrieve & modify */ ch = (rgba & 0x00ff0000) >> 16; // get green channel ch = (ch * 5) & 0xff; // modify channel; /* put back */ rgba &= 0xff00ffff; // reset green channel rgba |= (ch << 16); // set green channel;