Lines Matching refs:pixel
135 int pixel; /* key */ member
144 int pixel; /* key */ member
563 …return (a->pixel == b->pixel && a->bgcolor == b->bgcolor && a->fgcolor == b->fgcolor && a->im == b…
579 int pixel, npixel, bg, fg; local
583 pixel = a->pixel = b->pixel;
590 if ((pixel + pixel) >= NUMCOLORS) {
596 npixel = NUMCOLORS - pixel;
608 gdAlphaMax - (gdTrueColorGetAlpha (fg) * pixel / NUMCOLORS));
611 (pixel * im->red[fg] + npixel * im->red[bg]) / NUMCOLORS,
612 (pixel * im->green[fg] + npixel * im->green[bg]) / NUMCOLORS,
613 (pixel * im->blue[fg] + npixel * im->blue[bg]) / NUMCOLORS);
627 unsigned char *pixel = NULL; local
724 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
726 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
728 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
732 if (tc_key.pixel > 0) { /* if not background */
740 pixel = &im->pixels[y][x];
741 if (tc_key.pixel == NUMCOLORS) {
745 *pixel = (fg < 0) ? -fg : fg;
748 tc_key.bgcolor = *pixel;
750 *pixel = tc_elem->tweencolor;