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);
621 int x, y, p; in gdImagePaletteCopy() local
631 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
633 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
638 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
727 void gdImageSetPixel (gdImagePtr im, int x, int y, int color) in gdImageSetPixel() argument
739 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
750 gdImageSetPixel(im, x, y, gdBrushed); in gdImageSetPixel()
755 gdImageBrushApply(im, x, y); in gdImageSetPixel()
758 gdImageTileApply(im, x, y); in gdImageSetPixel()
761 gdImageAntiAliasedApply(im, x, y); in gdImageSetPixel()
764 if (gdImageBoundsSafe(im, x, y)) { in gdImageSetPixel()
769 im->tpixels[y][x] = color; in gdImageSetPixel()
772 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
775 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
778 im->tpixels[y][x] = gdLayerOverlay(im->tpixels[y][x], color); in gdImageSetPixel()
782 im->pixels[y][x] = color; in gdImageSetPixel()
789 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) in gdImageGetTrueColorPixel() argument
791 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel()
800 static void gdImageBrushApply (gdImagePtr im, int x, int y) in gdImageBrushApply() argument
812 y1 = y - hy; in gdImageBrushApply()
876 static void gdImageTileApply (gdImagePtr im, int x, int y) in gdImageTileApply() argument
885 srcy = y % gdImageSY(tile); in gdImageTileApply()
892 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
900 gdImageSetPixel(im, x, y, gdImageColorResolveAlpha(im, in gdImageTileApply()
906 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
913 static int gdImageTileGet (gdImagePtr im, int x, int y) in gdImageTileGet() argument
921 srcy = y % gdImageSY(im->tile); in gdImageTileGet()
1004 int gdImageGetPixel (gdImagePtr im, int x, int y) in gdImageGetPixel() argument
1006 if (gdImageBoundsSafe(im, x, y)) { in gdImageGetPixel()
1008 return im->tpixels[y][x]; in gdImageGetPixel()
1010 return im->pixels[y][x]; in gdImageGetPixel()
1061 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1065 gdImageFilledRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1074 gdImageSetPixel(im, x1, y, col); in gdImageHLine()
1102 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageLine() local
1156 y = y2; in gdImageLine()
1161 y = y1; in gdImageLine()
1167 wstart = y - wid / 2; in gdImageLine()
1178 y++; in gdImageLine()
1181 wstart = y - wid / 2; in gdImageLine()
1192 y--; in gdImageLine()
1195 wstart = y - wid / 2; in gdImageLine()
1219 y = y2; in gdImageLine()
1224 y = y1; in gdImageLine()
1233 gdImageSetPixel (im, w, y, color); in gdImageLine()
1237 while (y < yend) { in gdImageLine()
1238 y++; in gdImageLine()
1247 gdImageSetPixel (im, w, y, color); in gdImageLine()
1251 while (y < yend) { in gdImageLine()
1252 y++; in gdImageLine()
1261 gdImageSetPixel (im, w, y, color); in gdImageLine()
1275 inline static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) in gdImageSetAAPixelColor() argument
1282 p = gdImageGetPixel(im,x,y); in gdImageSetAAPixelColor()
1290 im->tpixels[y][x]=gdTrueColorAlpha(dr, dg, db, gdAlphaOpaque); in gdImageSetAAPixelColor()
1299 long x, y, inc; in gdImageAALine() local
1370 y = y1 << 16; in gdImageAALine()
1373 gdImageSetAAPixelColor(im, x >> 16, y >> 16, col, (y >> 8) & 0xFF); in gdImageAALine()
1374 if ((y >> 16) + 1 < im->sy) { in gdImageAALine()
1375 gdImageSetAAPixelColor(im, x >> 16, (y >> 16) + 1,col, (~y >> 8) & 0xFF); in gdImageAALine()
1378 y += inc; in gdImageAALine()
1392 y = y1 << 16; in gdImageAALine()
1394 while ((y>>16) <= y2) { in gdImageAALine()
1395 gdImageSetAAPixelColor(im, x >> 16, y >> 16, col, (x >> 8) & 0xFF); in gdImageAALine()
1397 gdImageSetAAPixelColor(im, (x >> 16) + 1, (y >> 16),col, (~x >> 8) & 0xFF); in gdImageAALine()
1400 y += (1<<16); in gdImageAALine()
1405 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i…
1409 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageDashedLine() local
1436 y = y2; in gdImageDashedLine()
1441 y = y1; in gdImageDashedLine()
1445 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()
1463 y--; in gdImageDashedLine()
1466 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1484 y = y2; in gdImageDashedLine()
1489 y = y1; in gdImageDashedLine()
1494 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()
1507 while (y < yend) { in gdImageDashedLine()
1508 y++; in gdImageDashedLine()
1515 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1521 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i… in dashedSet() argument
1534 wstart = y - wid / 2; in dashedSet()
1541 gdImageSetPixel(im, w, y, color); in dashedSet()
1549 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1563 for (py = y; (py < (y + f->h)); py++) { in gdImageChar()
1575 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1589 for (py = y; py > (y - f->w); py--) { in gdImageCharUp()
1601 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1607 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1612 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1618 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1619 y -= f->w; in gdImageStringUp()
1625 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1631 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1636 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1642 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1643 y -= f->w; in gdImageStringUp16()
1716 int x, y; in gdImageFilledArc() local
1718 y = ((long) gdSinT[i % 360] * (long) h / (2 * 1024)) + cy; in gdImageFilledArc()
1722 gdImageLine(im, lx, ly, x, y, color); in gdImageFilledArc()
1726 pts[0].y = ly; in gdImageFilledArc()
1728 pts[1].y = y; in gdImageFilledArc()
1730 pts[2].y = cy; in gdImageFilledArc()
1736 fy = y; in gdImageFilledArc()
1739 ly = y; in gdImageFilledArc()
1750 pts[0].y = fy; in gdImageFilledArc()
1752 pts[1].y = ly; in gdImageFilledArc()
1754 pts[2].y = cy; in gdImageFilledArc()
1767 void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) in gdImageFillToBorder() argument
1787 if (y >= im->sy) { in gdImageFillToBorder()
1788 y = im->sy - 1; in gdImageFillToBorder()
1789 } else if (y < 0) { in gdImageFillToBorder()
1790 y = 0; in gdImageFillToBorder()
1794 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1797 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1807 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1810 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1815 if (y > 0) { in gdImageFillToBorder()
1818 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder()
1821 gdImageFillToBorder(im, i, y - 1, border, color); in gdImageFillToBorder()
1831 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1834 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder()
1838 gdImageFillToBorder(im, i, y + 1, border, color); in gdImageFillToBorder()
1860 struct seg {int y, xl, xr, dy;}; member
1866 {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
1869 {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
1871 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
1873 void gdImageFill(gdImagePtr im, int x, int y, int nc) in gdImageFill() argument
1894 _gdImageFillTiled(im,x,y,nc); in gdImageFill()
1900 oc = gdImageGetPixel(im, x, y); in gdImageFill()
1901 if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) { in gdImageFill()
1910 int ix = x, iy = y, c; in gdImageFill()
1928 FILL_PUSH(y,x,x,1); in gdImageFill()
1930 FILL_PUSH(y+1, x, x, -1); in gdImageFill()
1932 FILL_POP(y, x1, x2, dy); in gdImageFill()
1934 for (x=x1; x>=0 && gdImageGetPixel(im,x, y)==oc; x--) { in gdImageFill()
1935 gdImageSetPixel(im,x, y, nc); in gdImageFill()
1944 FILL_PUSH(y, l, x1-1, -dy); in gdImageFill()
1948 for (; x<=wx2 && gdImageGetPixel(im,x, y)==oc; x++) { in gdImageFill()
1949 gdImageSetPixel(im, x, y, nc); in gdImageFill()
1951 FILL_PUSH(y, l, x-1, dy); in gdImageFill()
1954 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1956 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1968 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) in _gdImageFillTiled() argument
1984 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1994 oc = gdImageGetPixel(im, x, y); in _gdImageFillTiled()
1997 FILL_PUSH(y,x,x,1); in _gdImageFillTiled()
1999 FILL_PUSH(y+1, x, x, -1); in _gdImageFillTiled()
2001 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2002 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
2003 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2004 pts[y][x] = 1; in _gdImageFillTiled()
2005 gdImageSetPixel(im,x, y, nc); in _gdImageFillTiled()
2014 FILL_PUSH(y, l, x1-1, -dy); in _gdImageFillTiled()
2018 for(; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc); x++) { in _gdImageFillTiled()
2019 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2020 pts[y][x] = 1; in _gdImageFillTiled()
2021 gdImageSetPixel(im, x, y, nc); in _gdImageFillTiled()
2023 FILL_PUSH(y, l, x-1, dy); in _gdImageFillTiled()
2026 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2028 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2120 int x, y; in gdImageFilledRectangle() local
2135 y = y1; in gdImageFilledRectangle()
2137 y2 = y; in gdImageFilledRectangle()
2156 for (y = y1; (y <= y2); y++) { in gdImageFilledRectangle()
2158 gdImageSetPixel (im, x, y, color); in gdImageFilledRectangle()
2166 int x, y; in gdImageCopy() local
2178 for (y = 0; (y < h); y++) { in gdImageCopy()
2180 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy()
2181 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2186 for (y = 0; (y < h); y++) { in gdImageCopy()
2188 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy()
2190 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2201 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopy()
2205 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2223 for (y = srcY; y < (srcY + h); y++) { in gdImageCopy()
2228 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2265 int x, y; in gdImageCopyMerge() local
2270 for (y = srcY; y < (srcY + h); y++) { in gdImageCopyMerge()
2274 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2305 int x, y; in gdImageCopyMergeGray() local
2311 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopyMergeGray()
2315 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2359 int x, y; in gdImageCopyResized() local
2388 for (y = srcY; (y < (srcY + srcH)); y++) { in gdImageCopyResized()
2389 for (ydest = 0; (ydest < sty[y - srcY]); ydest++) { in gdImageCopyResized()
2400 int tmp = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2401 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2409 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2418 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2468 int x, y; in gdImageCopyResampled() local
2475 for (y = dstY; (y < dstY + dstH); y++) { in gdImageCopyResampled()
2476 sy1 = ((double) y - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2477 sy2 = ((double) (y + 1) - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2563 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2592 ly = p->y; in gdImagePolygon()
2593 draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2596 draw_line(im, lx, ly, p->x, p->y, c); in gdImagePolygon()
2598 ly = p->y; in gdImagePolygon()
2620 int y; in gdImageFilledPolygon() local
2655 miny = p[0].y; in gdImageFilledPolygon()
2656 maxy = p[0].y; in gdImageFilledPolygon()
2658 if (p[i].y < miny) { in gdImageFilledPolygon()
2659 miny = p[i].y; in gdImageFilledPolygon()
2661 if (p[i].y > maxy) { in gdImageFilledPolygon()
2662 maxy = p[i].y; in gdImageFilledPolygon()
2675 for (y = miny; y <= maxy; y++) { in gdImageFilledPolygon()
2688 y1 = p[ind1].y; in gdImageFilledPolygon()
2689 y2 = p[ind2].y; in gdImageFilledPolygon()
2694 y2 = p[ind1].y; in gdImageFilledPolygon()
2695 y1 = p[ind2].y; in gdImageFilledPolygon()
2705 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2706 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2707 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
2714 gdImageLine(im, im->polyInts[i], y, im->polyInts[i + 1], y, fill_color); in gdImageFilledPolygon()
2793 int x, y; in gdImageCompare() local
2830 for (y = 0; y < sy; y++) { in gdImageCompare()
2832 p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y); in gdImageCompare()
2833 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()
3024 unsigned int y; in gdImagePaletteToTrueColor() local
3043 for (y = 0; y < sy; y++) { in gdImagePaletteToTrueColor()
3044 const unsigned char *src_row = src->pixels[y]; in gdImagePaletteToTrueColor()
3048 src->tpixels[y] = (int *) gdMalloc(sx * sizeof(int)); in gdImagePaletteToTrueColor()
3049 if (src->tpixels[y] == NULL) { in gdImagePaletteToTrueColor()
3053 dst_row = src->tpixels[y]; in gdImagePaletteToTrueColor()
3066 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()
3083 if (y > 0) { in gdImagePaletteToTrueColor()
3085 for (yy = y; yy >= yy - 1; y--) { in gdImagePaletteToTrueColor()
3086 gdFree(src->tpixels[y]); in gdImagePaletteToTrueColor()