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
589 int pixel, npixel, bg, fg; local
595 fg = a->fgcolor = b->fgcolor;
599 if (fg < 0) {
601 a->tweencolor = -fg;
615 gdTrueColorGetRed(fg),
616 gdTrueColorGetGreen(fg),
617 gdTrueColorGetBlue(fg),
618 gdAlphaMax - (gdTrueColorGetAlpha (fg) * pixel / NUMCOLORS));
621 (pixel * im->red[fg] + npixel * im->red[bg]) / NUMCOLORS,
622 (pixel * im->green[fg] + npixel * im->green[bg]) / NUMCOLORS,
623 (pixel * im->blue[fg] + npixel * im->blue[bg]) / NUMCOLORS);
635 static char * gdft_draw_bitmap (gdCache_head_t *tc_cache, gdImage * im, int fg, FT_Bitmap bitmap, i… argument
646 tc_key.fgcolor = fg;
674 if ((fg >= 0) && (im->trueColor)) {
680 level = level * (gdAlphaMax - gdTrueColorGetAlpha(fg)) / gdAlphaMax;
691 if (fg < 0) {
693 *tpixel = -fg;
700 (level << 24) + (fg & 0xFFFFFF));
702 *tpixel = (level << 24) + (fg & 0xFFFFFF);
705 *tpixel = (level << 24) + (fg & 0xFFFFFF);
755 *pixel = (fg < 0) ? -fg : fg;
820 gdImageStringFT (gdImage * im, int *brect, int fg, char *fontlist, argument
823 return gdImageStringFTEx(im, brect, fg, fontlist, ptsize, angle, x, y, string, 0);
827 gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsize, double angle, i… argument
845 int render = (im && (im->trueColor || (fg <= 255 && fg >= -255)));
931 if (fg < 0) {
1187 …gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6) + bm->left, y + y1 + (…