02.07.2013, 12:01
You need to extract the channels with bitwise operations.
pawn Код:
new value = 0xFFFFFFFF; // value to extract channels from
new red = (value & 0xFF000000) >> 24;
new green = (value & 0x00FF0000) >> 16;
new blue = (value & 0x0000FF00) >> 8;