Lines Matching refs:fg
39 gdImageStringTTF (gdImage * im, int *brect, int fg, char *fontlist, in gdImageStringTTF() argument
43 return gdImageStringFT (im, brect, fg, fontlist, ptsize, angle, x, y, string); in gdImageStringTTF()
48 gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, in gdImageStringFTEx() argument
56 gdImageStringFT (gdImage * im, int *brect, int fg, char *fontlist, in gdImageStringFT() argument
579 int pixel, npixel, bg, fg; local
585 fg = a->fgcolor = b->fgcolor;
589 if (fg < 0) {
591 a->tweencolor = -fg;
605 gdTrueColorGetRed(fg),
606 gdTrueColorGetGreen(fg),
607 gdTrueColorGetBlue(fg),
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);
625 static char * gdft_draw_bitmap (gdCache_head_t *tc_cache, gdImage * im, int fg, FT_Bitmap bitmap, i… argument
636 tc_key.fgcolor = fg;
664 if ((fg >= 0) && (im->trueColor)) {
670 level = level * (gdAlphaMax - gdTrueColorGetAlpha(fg)) / gdAlphaMax;
681 if (fg < 0) {
683 *tpixel = -fg;
690 (level << 24) + (fg & 0xFFFFFF));
692 *tpixel = (level << 24) + (fg & 0xFFFFFF);
695 *tpixel = (level << 24) + (fg & 0xFFFFFF);
745 *pixel = (fg < 0) ? -fg : fg;
810 gdImageStringFT (gdImage * im, int *brect, int fg, char *fontlist, argument
813 return gdImageStringFTEx(im, brect, fg, fontlist, ptsize, angle, x, y, string, 0);
817 gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsize, double angle, i… argument
835 int render = (im && (im->trueColor || (fg <= 255 && fg >= -255)));
921 if (fg < 0) {
1177 …gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6) + bm->left, y + y1 + (…