Lines Matching refs:NUMCOLORS
33 #ifdef NUMCOLORS
34 #undef NUMCOLORS
36 #define NUMCOLORS 8 macro
557 if ((pixel + pixel) >= NUMCOLORS) {
563 npixel = NUMCOLORS - pixel;
575 gdAlphaMax - (gdTrueColorGetAlpha (fg) * pixel / NUMCOLORS));
578 (pixel * im->red[fg] + npixel * im->red[bg]) / NUMCOLORS,
579 (pixel * im->green[fg] + npixel * im->green[bg]) / NUMCOLORS,
580 (pixel * im->blue[fg] + npixel * im->blue[bg]) / NUMCOLORS);
682 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
684 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
686 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
699 if (tc_key.pixel == NUMCOLORS) {