От: | IROV.. | ||
Дата: | 23.03.15 20:11 | ||
Оценка: |
uint32_t color = 0xFFFF00AA;
uint8_t a = (color >> 24) & 0xFF;
uint8_t b = (color >> 16) & 0xFF;
uint8_t g = (color >> 8) & 0xFF;
uint8_t r = (color >> 0) & 0xFF;
uint32_t p_color = (a << 24) + (r << 16) + (g << 8) + (b << 0);