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);
619 int x, y, p; in gdImagePaletteCopy() local
629 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
631 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
636 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
725 void gdImageSetPixel (gdImagePtr im, int x, int y, int color) in gdImageSetPixel() argument
737 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
748 gdImageSetPixel(im, x, y, gdBrushed); in gdImageSetPixel()
753 gdImageBrushApply(im, x, y); in gdImageSetPixel()
756 gdImageTileApply(im, x, y); in gdImageSetPixel()
759 gdImageAntiAliasedApply(im, x, y); in gdImageSetPixel()
762 if (gdImageBoundsSafe(im, x, y)) { in gdImageSetPixel()
767 im->tpixels[y][x] = color; in gdImageSetPixel()
770 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
773 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
776 im->tpixels[y][x] = gdLayerOverlay(im->tpixels[y][x], color); in gdImageSetPixel()
780 im->pixels[y][x] = color; in gdImageSetPixel()
787 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) in gdImageGetTrueColorPixel() argument
789 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel()
798 static void gdImageBrushApply (gdImagePtr im, int x, int y) in gdImageBrushApply() argument
810 y1 = y - hy; in gdImageBrushApply()
874 static void gdImageTileApply (gdImagePtr im, int x, int y) in gdImageTileApply() argument
883 srcy = y % gdImageSY(tile); in gdImageTileApply()
890 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
898 gdImageSetPixel(im, x, y, gdImageColorResolveAlpha(im, in gdImageTileApply()
904 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
911 static int gdImageTileGet (gdImagePtr im, int x, int y) in gdImageTileGet() argument
919 srcy = y % gdImageSY(im->tile); in gdImageTileGet()
1002 int gdImageGetPixel (gdImagePtr im, int x, int y) in gdImageGetPixel() argument
1004 if (gdImageBoundsSafe(im, x, y)) { in gdImageGetPixel()
1006 return im->tpixels[y][x]; in gdImageGetPixel()
1008 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 _gdImageFilledHRectangle(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, frac; in gdImageAALine() local
1324 y = y1; in gdImageAALine()
1328 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1329 if (y + 1 < im->sy) { in gdImageAALine()
1330 gdImageSetAAPixelColor(im, x, y + 1, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1335 y++; in gdImageAALine()
1338 y--; in gdImageAALine()
1355 for (y = y1; y <= y2; y++) { in gdImageAALine()
1356 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1358 gdImageSetAAPixelColor(im, x + 1, y, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1372 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i…
1376 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageDashedLine() local
1402 y = y2; in gdImageDashedLine()
1407 y = y1; in gdImageDashedLine()
1411 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1418 y++; in gdImageDashedLine()
1421 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1429 y--; in gdImageDashedLine()
1432 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1450 y = y2; in gdImageDashedLine()
1455 y = y1; in gdImageDashedLine()
1460 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1462 while (y < yend) { in gdImageDashedLine()
1463 y++; in gdImageDashedLine()
1470 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1473 while (y < yend) { in gdImageDashedLine()
1474 y++; in gdImageDashedLine()
1481 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1487 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i… in dashedSet() argument
1500 wstart = y - wid / 2; in dashedSet()
1507 gdImageSetPixel(im, w, y, color); in dashedSet()
1515 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1529 for (py = y; (py < (y + f->h)); py++) { in gdImageChar()
1541 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1555 for (py = y; py > (y - f->w); py--) { in gdImageCharUp()
1567 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1573 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1578 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1584 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1585 y -= f->w; in gdImageStringUp()
1591 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1597 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1602 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1608 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1609 y -= f->w; in gdImageStringUp16()
1676 int x, y; in gdImageFilledArc() local
1678 y = ((long) gdSinT[i % 360] * (long) h / (2 * 1024)) + cy; in gdImageFilledArc()
1682 gdImageLine(im, lx, ly, x, y, color); in gdImageFilledArc()
1684 if (y == ly) { in gdImageFilledArc()
1693 pts[pti].y = y; in gdImageFilledArc()
1699 fy = y; in gdImageFilledArc()
1702 pts[0].y = cy; in gdImageFilledArc()
1704 pts[pti].y = y; in gdImageFilledArc()
1708 ly = y; in gdImageFilledArc()
1719 pts[0].y = fy; in gdImageFilledArc()
1721 pts[1].y = ly; in gdImageFilledArc()
1723 pts[2].y = cy; in gdImageFilledArc()
1734 pts[pti].y = cy; in gdImageFilledArc()
1740 void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) in gdImageFillToBorder() argument
1766 if (y >= im->sy) { in gdImageFillToBorder()
1767 y = im->sy - 1; in gdImageFillToBorder()
1768 } else if (y < 0) { in gdImageFillToBorder()
1769 y = 0; in gdImageFillToBorder()
1773 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1776 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1786 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1789 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1794 if (y > 0) { in gdImageFillToBorder()
1797 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder()
1800 gdImageFillToBorder(im, i, y - 1, border, color); in gdImageFillToBorder()
1810 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1813 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder()
1817 gdImageFillToBorder(im, i, y + 1, border, color); in gdImageFillToBorder()
1839 struct seg {int y, xl, xr, dy;}; member
1845 {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
1848 {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
1850 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
1852 void gdImageFill(gdImagePtr im, int x, int y, int nc) in gdImageFill() argument
1873 _gdImageFillTiled(im,x,y,nc); in gdImageFill()
1879 oc = gdImageGetPixel(im, x, y); in gdImageFill()
1880 if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) { in gdImageFill()
1889 int ix = x, iy = y, c; in gdImageFill()
1907 FILL_PUSH(y,x,x,1); in gdImageFill()
1909 FILL_PUSH(y+1, x, x, -1); in gdImageFill()
1911 FILL_POP(y, x1, x2, dy); in gdImageFill()
1913 for (x=x1; x>=0 && gdImageGetPixel(im,x, y)==oc; x--) { in gdImageFill()
1914 gdImageSetPixel(im,x, y, nc); in gdImageFill()
1923 FILL_PUSH(y, l, x1-1, -dy); in gdImageFill()
1927 for (; x<=wx2 && gdImageGetPixel(im,x, y)==oc; x++) { in gdImageFill()
1928 gdImageSetPixel(im, x, y, nc); in gdImageFill()
1930 FILL_PUSH(y, l, x-1, dy); in gdImageFill()
1933 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1935 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1947 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) in _gdImageFillTiled() argument
1963 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1973 oc = gdImageGetPixel(im, x, y); in _gdImageFillTiled()
1976 FILL_PUSH(y,x,x,1); in _gdImageFillTiled()
1978 FILL_PUSH(y+1, x, x, -1); in _gdImageFillTiled()
1980 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
1981 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
1982 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1983 pts[y][x] = 1; in _gdImageFillTiled()
1984 gdImageSetPixel(im,x, y, nc); in _gdImageFillTiled()
1993 FILL_PUSH(y, l, x1-1, -dy); in _gdImageFillTiled()
1997 for(; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc); x++) { in _gdImageFillTiled()
1998 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
1999 pts[y][x] = 1; in _gdImageFillTiled()
2000 gdImageSetPixel(im, x, y, nc); in _gdImageFillTiled()
2002 FILL_PUSH(y, l, x-1, dy); in _gdImageFillTiled()
2005 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2007 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2105 int x, y; in _gdImageFilledHRectangle() local
2119 y = y1; in _gdImageFilledHRectangle()
2121 y2 = y; in _gdImageFilledHRectangle()
2141 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2142 gdImageSetPixel (im, x, y, color); in _gdImageFilledHRectangle()
2149 int x, y; in _gdImageFilledVRectangle() local
2163 y = y1; in _gdImageFilledVRectangle()
2165 y2 = y; in _gdImageFilledVRectangle()
2184 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2186 gdImageSetPixel (im, x, y, color); in _gdImageFilledVRectangle()
2199 int x, y; in gdImageCopy() local
2211 for (y = 0; (y < h); y++) { in gdImageCopy()
2213 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy()
2215 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2221 for (y = 0; (y < h); y++) { in gdImageCopy()
2223 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy()
2225 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2238 for (y = srcY; y < (srcY + h); y++) { in gdImageCopy()
2243 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2280 int x, y; in gdImageCopyMerge() local
2285 for (y = srcY; y < (srcY + h); y++) { in gdImageCopyMerge()
2289 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2320 int x, y; in gdImageCopyMergeGray() local
2326 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopyMergeGray()
2330 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2374 int x, y; in gdImageCopyResized() local
2403 for (y = srcY; (y < (srcY + srcH)); y++) { in gdImageCopyResized()
2404 for (ydest = 0; (ydest < sty[y - srcY]); ydest++) { in gdImageCopyResized()
2415 int tmp = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2416 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2424 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2433 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2483 int x, y; in gdImageCopyResampled() local
2490 for (y = dstY; (y < dstY + dstH); y++) { in gdImageCopyResampled()
2491 sy1 = ((double) y - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2492 sy2 = ((double) (y + 1) - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2578 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2607 ly = p->y; in gdImagePolygon()
2608 draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2611 draw_line(im, lx, ly, p->x, p->y, c); in gdImagePolygon()
2613 ly = p->y; in gdImagePolygon()
2635 int y; in gdImageFilledPolygon() local
2670 miny = p[0].y; in gdImageFilledPolygon()
2671 maxy = p[0].y; in gdImageFilledPolygon()
2673 if (p[i].y < miny) { in gdImageFilledPolygon()
2674 miny = p[i].y; in gdImageFilledPolygon()
2676 if (p[i].y > maxy) { in gdImageFilledPolygon()
2677 maxy = p[i].y; in gdImageFilledPolygon()
2703 for (y = miny; y <= maxy; y++) { in gdImageFilledPolygon()
2716 y1 = p[ind1].y; in gdImageFilledPolygon()
2717 y2 = p[ind2].y; in gdImageFilledPolygon()
2722 y2 = p[ind1].y; in gdImageFilledPolygon()
2723 y1 = p[ind2].y; in gdImageFilledPolygon()
2733 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2734 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2735 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
2742 gdImageLine(im, im->polyInts[i], y, im->polyInts[i + 1], y, fill_color); in gdImageFilledPolygon()
2821 int x, y; in gdImageCompare() local
2858 for (y = 0; y < sy; y++) { in gdImageCompare()
2860 p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y); in gdImageCompare()
2861 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()
3052 unsigned int y; in gdImagePaletteToTrueColor() local
3071 for (y = 0; y < sy; y++) { in gdImagePaletteToTrueColor()
3072 const unsigned char *src_row = src->pixels[y]; in gdImagePaletteToTrueColor()
3076 src->tpixels[y] = (int *) gdMalloc(sx * sizeof(int)); in gdImagePaletteToTrueColor()
3077 if (src->tpixels[y] == NULL) { in gdImagePaletteToTrueColor()
3081 dst_row = src->tpixels[y]; in gdImagePaletteToTrueColor()
3094 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()
3112 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()