Lines Matching refs:y
94 static void gdImageBrushApply(gdImagePtr im, int x, int y);
95 static void gdImageTileApply(gdImagePtr im, int x, int y);
96 static void gdImageAntiAliasedApply(gdImagePtr im, int x, int y);
99 int gdImageGetTrueColorPixel(gdImagePtr im, int x, int y);
610 int x, y, p; in gdImagePaletteCopy() local
620 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
622 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
627 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
716 void gdImageSetPixel (gdImagePtr im, int x, int y, int color) in gdImageSetPixel() argument
728 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
739 gdImageSetPixel(im, x, y, gdBrushed); in gdImageSetPixel()
744 gdImageBrushApply(im, x, y); in gdImageSetPixel()
747 gdImageTileApply(im, x, y); in gdImageSetPixel()
750 gdImageAntiAliasedApply(im, x, y); in gdImageSetPixel()
753 if (gdImageBoundsSafe(im, x, y)) { in gdImageSetPixel()
758 im->tpixels[y][x] = color; in gdImageSetPixel()
761 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
764 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
767 im->tpixels[y][x] = gdLayerOverlay(im->tpixels[y][x], color); in gdImageSetPixel()
771 im->pixels[y][x] = color; in gdImageSetPixel()
778 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) in gdImageGetTrueColorPixel() argument
780 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel()
789 static void gdImageBrushApply (gdImagePtr im, int x, int y) in gdImageBrushApply() argument
801 y1 = y - hy; in gdImageBrushApply()
865 static void gdImageTileApply (gdImagePtr im, int x, int y) in gdImageTileApply() argument
874 srcy = y % gdImageSY(tile); in gdImageTileApply()
881 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
889 gdImageSetPixel(im, x, y, gdImageColorResolveAlpha(im, in gdImageTileApply()
895 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
902 static int gdImageTileGet (gdImagePtr im, int x, int y) in gdImageTileGet() argument
910 srcy = y % gdImageSY(im->tile); in gdImageTileGet()
993 int gdImageGetPixel (gdImagePtr im, int x, int y) in gdImageGetPixel() argument
995 if (gdImageBoundsSafe(im, x, y)) { in gdImageGetPixel()
997 return im->tpixels[y][x]; in gdImageGetPixel()
999 return im->pixels[y][x]; in gdImageGetPixel()
1050 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1054 gdImageFilledRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1063 gdImageSetPixel(im, x1, y, col); in gdImageHLine()
1091 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageLine() local
1145 y = y2; in gdImageLine()
1150 y = y1; in gdImageLine()
1156 wstart = y - wid / 2; in gdImageLine()
1167 y++; in gdImageLine()
1170 wstart = y - wid / 2; in gdImageLine()
1181 y--; in gdImageLine()
1184 wstart = y - wid / 2; in gdImageLine()
1208 y = y2; in gdImageLine()
1213 y = y1; in gdImageLine()
1222 gdImageSetPixel (im, w, y, color); in gdImageLine()
1226 while (y < yend) { in gdImageLine()
1227 y++; in gdImageLine()
1236 gdImageSetPixel (im, w, y, color); in gdImageLine()
1240 while (y < yend) { in gdImageLine()
1241 y++; in gdImageLine()
1250 gdImageSetPixel (im, w, y, color); in gdImageLine()
1264 inline static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) in gdImageSetAAPixelColor() argument
1271 p = gdImageGetPixel(im,x,y); in gdImageSetAAPixelColor()
1279 im->tpixels[y][x]=gdTrueColorAlpha(dr, dg, db, gdAlphaOpaque); in gdImageSetAAPixelColor()
1288 long x, y, inc; in gdImageAALine() local
1359 y = y1 << 16; in gdImageAALine()
1362 gdImageSetAAPixelColor(im, x >> 16, y >> 16, col, (y >> 8) & 0xFF); in gdImageAALine()
1363 if ((y >> 16) + 1 < im->sy) { in gdImageAALine()
1364 gdImageSetAAPixelColor(im, x >> 16, (y >> 16) + 1,col, (~y >> 8) & 0xFF); in gdImageAALine()
1367 y += inc; in gdImageAALine()
1381 y = y1 << 16; in gdImageAALine()
1383 while ((y>>16) <= y2) { in gdImageAALine()
1384 gdImageSetAAPixelColor(im, x >> 16, y >> 16, col, (x >> 8) & 0xFF); in gdImageAALine()
1386 gdImageSetAAPixelColor(im, (x >> 16) + 1, (y >> 16),col, (~x >> 8) & 0xFF); in gdImageAALine()
1389 y += (1<<16); in gdImageAALine()
1394 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i…
1398 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageDashedLine() local
1425 y = y2; in gdImageDashedLine()
1430 y = y1; in gdImageDashedLine()
1434 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1441 y++; in gdImageDashedLine()
1444 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1452 y--; in gdImageDashedLine()
1455 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1473 y = y2; in gdImageDashedLine()
1478 y = y1; in gdImageDashedLine()
1483 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1485 while (y < yend) { in gdImageDashedLine()
1486 y++; in gdImageDashedLine()
1493 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1496 while (y < yend) { in gdImageDashedLine()
1497 y++; in gdImageDashedLine()
1504 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1510 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i… in dashedSet() argument
1523 wstart = y - wid / 2; in dashedSet()
1530 gdImageSetPixel(im, w, y, color); in dashedSet()
1538 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1552 for (py = y; (py < (y + f->h)); py++) { in gdImageChar()
1564 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1578 for (py = y; py > (y - f->w); py--) { in gdImageCharUp()
1590 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1596 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1601 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1607 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1608 y -= f->w; in gdImageStringUp()
1614 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1620 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1625 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1631 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1632 y -= f->w; in gdImageStringUp16()
1705 int x, y; in gdImageFilledArc() local
1707 y = ((long) gdSinT[i % 360] * (long) h / (2 * 1024)) + cy; in gdImageFilledArc()
1711 gdImageLine(im, lx, ly, x, y, color); in gdImageFilledArc()
1715 pts[0].y = ly; in gdImageFilledArc()
1717 pts[1].y = y; in gdImageFilledArc()
1719 pts[2].y = cy; in gdImageFilledArc()
1725 fy = y; in gdImageFilledArc()
1728 ly = y; in gdImageFilledArc()
1739 pts[0].y = fy; in gdImageFilledArc()
1741 pts[1].y = ly; in gdImageFilledArc()
1743 pts[2].y = cy; in gdImageFilledArc()
1756 void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) in gdImageFillToBorder() argument
1774 if (y >= im->sy) { in gdImageFillToBorder()
1775 y = im->sy - 1; in gdImageFillToBorder()
1779 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1782 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1792 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1795 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1800 if (y > 0) { in gdImageFillToBorder()
1803 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder()
1806 gdImageFillToBorder(im, i, y - 1, border, color); in gdImageFillToBorder()
1816 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1819 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder()
1823 gdImageFillToBorder(im, i, y + 1, border, color); in gdImageFillToBorder()
1845 struct seg {int y, xl, xr, dy;}; member
1851 {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
1854 {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
1856 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
1858 void gdImageFill(gdImagePtr im, int x, int y, int nc) in gdImageFill() argument
1879 _gdImageFillTiled(im,x,y,nc); in gdImageFill()
1885 oc = gdImageGetPixel(im, x, y); in gdImageFill()
1886 if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) { in gdImageFill()
1895 int ix = x, iy = y, c; in gdImageFill()
1913 FILL_PUSH(y,x,x,1); in gdImageFill()
1915 FILL_PUSH(y+1, x, x, -1); in gdImageFill()
1917 FILL_POP(y, x1, x2, dy); in gdImageFill()
1919 for (x=x1; x>=0 && gdImageGetPixel(im,x, y)==oc; x--) { in gdImageFill()
1920 gdImageSetPixel(im,x, y, nc); in gdImageFill()
1929 FILL_PUSH(y, l, x1-1, -dy); in gdImageFill()
1933 for (; x<=wx2 && gdImageGetPixel(im,x, y)==oc; x++) { in gdImageFill()
1934 gdImageSetPixel(im, x, y, nc); in gdImageFill()
1936 FILL_PUSH(y, l, x-1, dy); in gdImageFill()
1939 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1941 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1953 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) in _gdImageFillTiled() argument
1971 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1981 oc = gdImageGetPixel(im, x, y); in _gdImageFillTiled()
1984 FILL_PUSH(y,x,x,1); in _gdImageFillTiled()
1986 FILL_PUSH(y+1, x, x, -1); in _gdImageFillTiled()
1988 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
1989 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
1990 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1991 pts[y][x] = 1; in _gdImageFillTiled()
1992 gdImageSetPixel(im,x, y, nc); in _gdImageFillTiled()
2001 FILL_PUSH(y, l, x1-1, -dy); in _gdImageFillTiled()
2005 for(; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc); x++) { in _gdImageFillTiled()
2006 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2007 pts[y][x] = 1; in _gdImageFillTiled()
2008 gdImageSetPixel(im, x, y, nc); in _gdImageFillTiled()
2010 FILL_PUSH(y, l, x-1, dy); in _gdImageFillTiled()
2013 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2015 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2108 int x, y; in gdImageFilledRectangle() local
2123 y = y1; in gdImageFilledRectangle()
2125 y2 = y; in gdImageFilledRectangle()
2144 for (y = y1; (y <= y2); y++) { in gdImageFilledRectangle()
2146 gdImageSetPixel (im, x, y, color); in gdImageFilledRectangle()
2154 int x, y; in gdImageCopy() local
2166 for (y = 0; (y < h); y++) { in gdImageCopy()
2168 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy()
2169 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2174 for (y = 0; (y < h); y++) { in gdImageCopy()
2176 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy()
2178 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2189 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopy()
2193 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2211 for (y = srcY; y < (srcY + h); y++) { in gdImageCopy()
2216 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2253 int x, y; in gdImageCopyMerge() local
2258 for (y = srcY; y < (srcY + h); y++) { in gdImageCopyMerge()
2262 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2293 int x, y; in gdImageCopyMergeGray() local
2299 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopyMergeGray()
2303 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2347 int x, y; in gdImageCopyResized() local
2379 for (y = srcY; (y < (srcY + srcH)); y++) { in gdImageCopyResized()
2380 for (ydest = 0; (ydest < sty[y - srcY]); ydest++) { in gdImageCopyResized()
2391 int tmp = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2392 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2400 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2409 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2459 int x, y; in gdImageCopyResampled() local
2466 for (y = dstY; (y < dstY + dstH); y++) { in gdImageCopyResampled()
2467 sy1 = ((double) y - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2468 sy2 = ((double) (y + 1) - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2554 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2583 ly = p->y; in gdImagePolygon()
2584 draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2587 draw_line(im, lx, ly, p->x, p->y, c); in gdImagePolygon()
2589 ly = p->y; in gdImagePolygon()
2611 int y; in gdImageFilledPolygon() local
2646 miny = p[0].y; in gdImageFilledPolygon()
2647 maxy = p[0].y; in gdImageFilledPolygon()
2649 if (p[i].y < miny) { in gdImageFilledPolygon()
2650 miny = p[i].y; in gdImageFilledPolygon()
2652 if (p[i].y > maxy) { in gdImageFilledPolygon()
2653 maxy = p[i].y; in gdImageFilledPolygon()
2666 for (y = miny; y <= maxy; y++) { in gdImageFilledPolygon()
2679 y1 = p[ind1].y; in gdImageFilledPolygon()
2680 y2 = p[ind2].y; in gdImageFilledPolygon()
2685 y2 = p[ind1].y; in gdImageFilledPolygon()
2686 y1 = p[ind2].y; in gdImageFilledPolygon()
2696 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2697 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2698 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
2705 gdImageLine(im, im->polyInts[i], y, im->polyInts[i + 1], y, fill_color); in gdImageFilledPolygon()
2784 int x, y; in gdImageCompare() local
2821 for (y = 0; y < sy; y++) { in gdImageCompare()
2823 p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y); in gdImageCompare()
2824 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()