Lines Matching refs:p
619 int x, y, p; in gdImagePaletteCopy() local
631 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
632 if (xlate[p] == -1) { in gdImagePaletteCopy()
634 xlate[p] = gdImageColorClosestAlpha (from, to->red[p], to->green[p], to->blue[p], to->alpha[p]); in gdImagePaletteCopy()
636 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
727 int p; in gdImageSetPixel() local
734 p = im->style[im->stylePos++]; in gdImageSetPixel()
736 if (p != gdTransparent) { in gdImageSetPixel()
737 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
746 p = im->style[im->stylePos++]; in gdImageSetPixel()
747 if (p != gdTransparent && p != 0) { in gdImageSetPixel()
789 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel() local
792 …return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p], (im->transparent == p) ? gdAlphaTra… in gdImageGetTrueColorPixel()
794 return p; in gdImageGetTrueColorPixel()
822 int p; in gdImageBrushApply() local
823 p = gdImageGetTrueColorPixel(im->brush, srcx, srcy); in gdImageBrushApply()
825 if (p != gdImageGetTransparent(im->brush)) { in gdImageBrushApply()
826 gdImageSetPixel(im, lx, ly, p); in gdImageBrushApply()
837 int p, tc; in gdImageBrushApply() local
838 p = gdImageGetPixel(im->brush, srcx, srcy); in gdImageBrushApply()
841 if (p != gdImageGetTransparent(im->brush)) { in gdImageBrushApply()
853 int p; in gdImageBrushApply() local
854 p = gdImageGetPixel(im->brush, srcx, srcy); in gdImageBrushApply()
856 if (p != gdImageGetTransparent(im->brush)) { in gdImageBrushApply()
859 gdImageSetPixel(im, lx, ly, gdImageColorResolveAlpha(im, gdTrueColorGetRed(p), in gdImageBrushApply()
860 gdTrueColorGetGreen(p), in gdImageBrushApply()
861 gdTrueColorGetBlue(p), in gdImageBrushApply()
862 gdTrueColorGetAlpha(p))); in gdImageBrushApply()
864 gdImageSetPixel(im, lx, ly, im->brushColorMap[p]); in gdImageBrushApply()
878 int p; in gdImageTileApply() local
885 p = gdImageGetPixel(tile, srcx, srcy); in gdImageTileApply()
886 if (p != gdImageGetTransparent (tile)) { in gdImageTileApply()
888 p = gdTrueColorAlpha(tile->red[p], tile->green[p], tile->blue[p], tile->alpha[p]); in gdImageTileApply()
890 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
893 p = gdImageGetPixel(tile, srcx, srcy); in gdImageTileApply()
895 if (p != gdImageGetTransparent(tile)) { in gdImageTileApply()
899 gdTrueColorGetRed(p), in gdImageTileApply()
900 gdTrueColorGetGreen(p), in gdImageTileApply()
901 gdTrueColorGetBlue(p), in gdImageTileApply()
902 gdTrueColorGetAlpha(p))); in gdImageTileApply()
904 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
914 int tileColor,p; in gdImageTileGet() local
920 p = gdImageGetPixel(im->tile, srcx, srcy); in gdImageTileGet()
924 tileColor = p; in gdImageTileGet()
926 …TrueColorAlpha( gdImageRed(im->tile,p), gdImageGreen(im->tile,p), gdImageBlue (im->tile,p), gdImag… in gdImageTileGet()
930 …lorResolveAlpha(im, gdTrueColorGetRed (p), gdTrueColorGetGreen (p), gdTrueColorGetBlue (p), gdTrue… in gdImageTileGet()
932 tileColor = p; in gdImageTileGet()
933 …solveAlpha(im, gdImageRed (im->tile,p), gdImageGreen (im->tile,p), gdImageBlue (im->tile,p), gdIma… in gdImageTileGet()
1277 int dr,dg,db,p,r,g,b; in gdImageSetAAPixelColor() local
1282 p = gdImageGetPixel(im,x,y); in gdImageSetAAPixelColor()
1283 r = gdTrueColorGetRed(p); in gdImageSetAAPixelColor()
1284 g = gdTrueColorGetGreen(p); in gdImageSetAAPixelColor()
1285 b = gdTrueColorGetBlue(p); in gdImageSetAAPixelColor()
2519 int p; in gdImageCopyResampled() local
2532 p = gdImageGetTrueColorPixel(src, (int) sx + srcX, (int) sy + srcY); in gdImageCopyResampled()
2534 alpha_factor = ((gdAlphaMax - gdTrueColorGetAlpha(p))) * pcontribution; in gdImageCopyResampled()
2535 red += gdTrueColorGetRed (p) * alpha_factor; in gdImageCopyResampled()
2536 green += gdTrueColorGetGreen (p) * alpha_factor; in gdImageCopyResampled()
2537 blue += gdTrueColorGetBlue (p) * alpha_factor; in gdImageCopyResampled()
2538 alpha += gdTrueColorGetAlpha (p) * pcontribution; in gdImageCopyResampled()
2584 void gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c) in gdImagePolygon() argument
2607 lx = p->x; in gdImagePolygon()
2608 ly = p->y; in gdImagePolygon()
2609 draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2611 p++; in gdImagePolygon()
2612 draw_line(im, lx, ly, p->x, p->y, c); in gdImagePolygon()
2613 lx = p->x; in gdImagePolygon()
2614 ly = p->y; in gdImagePolygon()
2633 void gdImageFilledPolygon (gdImagePtr im, gdPointPtr p, int n, int c) in gdImageFilledPolygon() argument
2671 miny = p[0].y; in gdImageFilledPolygon()
2672 maxy = p[0].y; in gdImageFilledPolygon()
2674 if (p[i].y < miny) { in gdImageFilledPolygon()
2675 miny = p[i].y; in gdImageFilledPolygon()
2677 if (p[i].y > maxy) { in gdImageFilledPolygon()
2678 maxy = p[i].y; in gdImageFilledPolygon()
2683 x1 = x2 = p[0].x; in gdImageFilledPolygon()
2685 if (p[i].x < x1) { in gdImageFilledPolygon()
2686 x1 = p[i].x; in gdImageFilledPolygon()
2687 } else if (p[i].x > x2) { in gdImageFilledPolygon()
2688 x2 = p[i].x; in gdImageFilledPolygon()
2717 y1 = p[ind1].y; in gdImageFilledPolygon()
2718 y2 = p[ind2].y; in gdImageFilledPolygon()
2720 x1 = p[ind1].x; in gdImageFilledPolygon()
2721 x2 = p[ind2].x; in gdImageFilledPolygon()
2723 y2 = p[ind1].y; in gdImageFilledPolygon()
2724 y1 = p[ind2].y; in gdImageFilledPolygon()
2725 x2 = p[ind1].x; in gdImageFilledPolygon()
2726 x1 = p[ind2].x; in gdImageFilledPolygon()
2749 gdImagePolygon(im, p, n, c); in gdImageFilledPolygon()