Home | History | Annotate | Download | only in fxge

Lines Matching refs:argb

88 void ArgbDecode(FX_ARGB argb, int& a, int& r, int& g, int& b);
89 void ArgbDecode(FX_ARGB argb, int& a, FX_COLORREF& rgb);
94 #define FXARGB_A(argb) ((uint8_t)((argb) >> 24))
95 #define FXARGB_R(argb) ((uint8_t)((argb) >> 16))
96 #define FXARGB_G(argb) ((uint8_t)((argb) >> 8))
97 #define FXARGB_B(argb) ((uint8_t)(argb))
100 #define FXARGB_MUL_ALPHA(argb, alpha) \
101 (((((argb) >> 24) * (alpha) / 255) << 24) | ((argb)&0xffffff))
120 #define FXARGB_SETDIB(p, argb) \
121 ((uint8_t*)(p))[0] = (uint8_t)(argb), \
122 ((uint8_t*)(p))[1] = (uint8_t)((argb) >> 8), \
123 ((uint8_t*)(p))[2] = (uint8_t)((argb) >> 16), \
124 ((uint8_t*)(p))[3] = (uint8_t)((argb) >> 24)
135 #define FXARGB_SETRGBORDERDIB(p, argb) \
136 ((uint8_t*)(p))[3] = (uint8_t)(argb >> 24), \
137 ((uint8_t*)(p))[0] = (uint8_t)((argb) >> 16), \
138 ((uint8_t*)(p))[1] = (uint8_t)((argb) >> 8), \
139 ((uint8_t*)(p))[2] = (uint8_t)(argb)
148 #define FXARGB_TODIB(argb) (argb)
152 #define FXARGB_TOBGRORDERDIB(argb) \
153 ((uint8_t)(argb >> 16) | ((uint8_t)(argb >> 8)) << 8 | \
154 ((uint8_t)(argb)) << 16 | ((uint8_t)(argb >> 24) << 24))