Lines Matching refs:y
166 static void gdImageBrushApply(gdImagePtr im, int x, int y);
167 static void gdImageTileApply(gdImagePtr im, int x, int y);
169 int gdImageGetTrueColorPixel(gdImagePtr im, int x, int y);
657 int x, y, p; in gdImagePaletteCopy() local
667 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
669 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
674 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
763 void gdImageSetPixel (gdImagePtr im, int x, int y, int color) in gdImageSetPixel() argument
775 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
786 gdImageSetPixel(im, x, y, gdBrushed); in gdImageSetPixel()
791 gdImageBrushApply(im, x, y); in gdImageSetPixel()
794 gdImageTileApply(im, x, y); in gdImageSetPixel()
799 gdImageSetPixel(im, x, y, im->AA_color); in gdImageSetPixel()
802 if (gdImageBoundsSafe(im, x, y)) { in gdImageSetPixel()
807 im->tpixels[y][x] = color; in gdImageSetPixel()
811 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
814 im->tpixels[y][x] = gdLayerOverlay(im->tpixels[y][x], color); in gdImageSetPixel()
817 im->tpixels[y][x] = gdLayerMultiply(im->tpixels[y][x], color); in gdImageSetPixel()
821 im->pixels[y][x] = color; in gdImageSetPixel()
828 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) in gdImageGetTrueColorPixel() argument
830 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel()
839 static void gdImageBrushApply (gdImagePtr im, int x, int y) in gdImageBrushApply() argument
851 y1 = y - hy; in gdImageBrushApply()
915 static void gdImageTileApply (gdImagePtr im, int x, int y) in gdImageTileApply() argument
924 srcy = y % gdImageSY(tile); in gdImageTileApply()
931 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
939 gdImageSetPixel(im, x, y, gdImageColorResolveAlpha(im, in gdImageTileApply()
945 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
952 static int gdImageTileGet (gdImagePtr im, int x, int y) in gdImageTileGet() argument
960 srcy = y % gdImageSY(im->tile); in gdImageTileGet()
981 int gdImageGetPixel (gdImagePtr im, int x, int y) in gdImageGetPixel() argument
983 if (gdImageBoundsSafe(im, x, y)) { in gdImageGetPixel()
985 return im->tpixels[y][x]; in gdImageGetPixel()
987 return im->pixels[y][x]; in gdImageGetPixel()
1001 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1005 _gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1014 gdImageSetPixel(im, x1, y, col); in gdImageHLine()
1042 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageLine() local
1096 y = y2; in gdImageLine()
1101 y = y1; in gdImageLine()
1107 wstart = y - wid / 2; in gdImageLine()
1118 y++; in gdImageLine()
1121 wstart = y - wid / 2; in gdImageLine()
1132 y--; in gdImageLine()
1135 wstart = y - wid / 2; in gdImageLine()
1159 y = y2; in gdImageLine()
1164 y = y1; in gdImageLine()
1173 gdImageSetPixel (im, w, y, color); in gdImageLine()
1177 while (y < yend) { in gdImageLine()
1178 y++; in gdImageLine()
1187 gdImageSetPixel (im, w, y, color); in gdImageLine()
1191 while (y < yend) { in gdImageLine()
1192 y++; in gdImageLine()
1201 gdImageSetPixel (im, w, y, color); in gdImageLine()
1215 inline static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) in gdImageSetAAPixelColor() argument
1222 p = gdImageGetPixel(im,x,y); in gdImageSetAAPixelColor()
1230 im->tpixels[y][x]=gdTrueColorAlpha(dr, dg, db, gdAlphaOpaque); in gdImageSetAAPixelColor()
1239 long x, y, inc, frac; in gdImageAALine() local
1270 y = y1; in gdImageAALine()
1274 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1275 if (y + 1 < im->sy) { in gdImageAALine()
1276 gdImageSetAAPixelColor(im, x, y + 1, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1281 y++; in gdImageAALine()
1284 y--; in gdImageAALine()
1301 for (y = y1; y <= y2; y++) { in gdImageAALine()
1302 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1304 gdImageSetAAPixelColor(im, x + 1, y, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1318 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i…
1322 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageDashedLine() local
1348 y = y2; in gdImageDashedLine()
1353 y = y1; in gdImageDashedLine()
1357 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1364 y++; in gdImageDashedLine()
1367 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1375 y--; in gdImageDashedLine()
1378 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1396 y = y2; in gdImageDashedLine()
1401 y = y1; in gdImageDashedLine()
1406 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1408 while (y < yend) { in gdImageDashedLine()
1409 y++; in gdImageDashedLine()
1416 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1419 while (y < yend) { in gdImageDashedLine()
1420 y++; in gdImageDashedLine()
1427 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1433 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i… in dashedSet() argument
1446 wstart = y - wid / 2; in dashedSet()
1453 gdImageSetPixel(im, w, y, color); in dashedSet()
1461 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1475 for (py = y; (py < (y + f->h)); py++) { in gdImageChar()
1487 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1501 for (py = y; py > (y - f->w); py--) { in gdImageCharUp()
1513 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1519 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1524 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1530 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1531 y -= f->w; in gdImageStringUp()
1537 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1543 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1548 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1554 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1555 y -= f->w; in gdImageStringUp16()
1622 int x, y; in gdImageFilledArc() local
1624 y = endy = ((long) gdSinT[i % 360] * (long) h / (2 * 1024)) + cy; in gdImageFilledArc()
1628 gdImageLine(im, lx, ly, x, y, color); in gdImageFilledArc()
1630 if (y == ly) { in gdImageFilledArc()
1639 pts[pti].y = y; in gdImageFilledArc()
1645 fy = y; in gdImageFilledArc()
1648 pts[0].y = cy; in gdImageFilledArc()
1650 pts[pti].y = starty = y; in gdImageFilledArc()
1654 ly = y; in gdImageFilledArc()
1665 pts[0].y = fy; in gdImageFilledArc()
1667 pts[1].y = ly; in gdImageFilledArc()
1669 pts[2].y = cy; in gdImageFilledArc()
1680 if (pts[1].x != startx && pts[1].y == starty) { in gdImageFilledArc()
1684 pts[i].y = pts[i-1].y; in gdImageFilledArc()
1687 pts[1].y = starty; in gdImageFilledArc()
1690 if (pts[pti-1].x != endx && pts[pti-1].y == endy) { in gdImageFilledArc()
1693 pts[pti].y = endy; in gdImageFilledArc()
1698 pts[pti].y = cy; in gdImageFilledArc()
1798 void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) in gdImageFillToBorder() argument
1824 if (y >= im->sy) { in gdImageFillToBorder()
1825 y = im->sy - 1; in gdImageFillToBorder()
1826 } else if (y < 0) { in gdImageFillToBorder()
1827 y = 0; in gdImageFillToBorder()
1831 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1834 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1844 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1847 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1852 if (y > 0) { in gdImageFillToBorder()
1855 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder()
1858 gdImageFillToBorder(im, i, y - 1, border, color); in gdImageFillToBorder()
1868 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1871 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder()
1875 gdImageFillToBorder(im, i, y + 1, border, color); in gdImageFillToBorder()
1897 struct seg {int y, xl, xr, dy;}; member
1903 {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
1906 {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
1908 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
1910 void gdImageFill(gdImagePtr im, int x, int y, int nc) in gdImageFill() argument
1931 _gdImageFillTiled(im,x,y,nc); in gdImageFill()
1937 oc = gdImageGetPixel(im, x, y); in gdImageFill()
1938 if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) { in gdImageFill()
1947 int ix = x, iy = y, c; in gdImageFill()
1965 FILL_PUSH(y,x,x,1); in gdImageFill()
1967 FILL_PUSH(y+1, x, x, -1); in gdImageFill()
1969 FILL_POP(y, x1, x2, dy); in gdImageFill()
1971 for (x=x1; x>=0 && gdImageGetPixel(im,x, y)==oc; x--) { in gdImageFill()
1972 gdImageSetPixel(im,x, y, nc); in gdImageFill()
1981 FILL_PUSH(y, l, x1-1, -dy); in gdImageFill()
1985 for (; x<=wx2 && gdImageGetPixel(im,x, y)==oc; x++) { in gdImageFill()
1986 gdImageSetPixel(im, x, y, nc); in gdImageFill()
1988 FILL_PUSH(y, l, x-1, dy); in gdImageFill()
1991 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1993 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
2005 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) in _gdImageFillTiled() argument
2021 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2031 oc = gdImageGetPixel(im, x, y); in _gdImageFillTiled()
2034 FILL_PUSH(y,x,x,1); in _gdImageFillTiled()
2036 FILL_PUSH(y+1, x, x, -1); in _gdImageFillTiled()
2038 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2039 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
2040 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2041 pts[y][x] = 1; in _gdImageFillTiled()
2042 gdImageSetPixel(im,x, y, nc); in _gdImageFillTiled()
2051 FILL_PUSH(y, l, x1-1, -dy); in _gdImageFillTiled()
2055 for(; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc); x++) { in _gdImageFillTiled()
2056 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2057 pts[y][x] = 1; in _gdImageFillTiled()
2058 gdImageSetPixel(im, x, y, nc); in _gdImageFillTiled()
2060 FILL_PUSH(y, l, x-1, dy); in _gdImageFillTiled()
2063 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2065 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2159 int x, y; in _gdImageFilledHRectangle() local
2173 y = y1; in _gdImageFilledHRectangle()
2175 y2 = y; in _gdImageFilledHRectangle()
2195 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2196 gdImageSetPixel (im, x, y, color); in _gdImageFilledHRectangle()
2203 int x, y; in _gdImageFilledVRectangle() local
2217 y = y1; in _gdImageFilledVRectangle()
2219 y2 = y; in _gdImageFilledVRectangle()
2238 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2240 gdImageSetPixel (im, x, y, color); in _gdImageFilledVRectangle()
2253 int x, y; in gdImageCopy() local
2265 for (y = 0; (y < h); y++) { in gdImageCopy()
2267 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy()
2269 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2275 for (y = 0; (y < h); y++) { in gdImageCopy()
2277 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy()
2279 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2292 for (y = srcY; y < (srcY + h); y++) { in gdImageCopy()
2297 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2334 int x, y; in gdImageCopyMerge() local
2339 for (y = srcY; y < (srcY + h); y++) { in gdImageCopyMerge()
2343 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2374 int x, y; in gdImageCopyMergeGray() local
2380 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopyMergeGray()
2384 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2428 int x, y; in gdImageCopyResized() local
2457 for (y = srcY; (y < (srcY + srcH)); y++) { in gdImageCopyResized()
2458 for (ydest = 0; (ydest < sty[y - srcY]); ydest++) { in gdImageCopyResized()
2469 int tmp = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2470 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2478 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2487 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2537 int x, y; in gdImageCopyResampled() local
2544 for (y = dstY; (y < dstY + dstH); y++) { in gdImageCopyResampled()
2545 sy1 = ((double) y - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2546 sy2 = ((double) (y + 1) - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2632 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2644 gdImageLine (im, p->x, p->y, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2658 ly = p->y; in gdImageOpenPolygon()
2661 gdImageLine(im, lx, ly, p->x, p->y, c); in gdImageOpenPolygon()
2663 ly = p->y; in gdImageOpenPolygon()
2680 int y; in gdImageFilledPolygon() local
2715 miny = p[0].y; in gdImageFilledPolygon()
2716 maxy = p[0].y; in gdImageFilledPolygon()
2718 if (p[i].y < miny) { in gdImageFilledPolygon()
2719 miny = p[i].y; in gdImageFilledPolygon()
2721 if (p[i].y > maxy) { in gdImageFilledPolygon()
2722 maxy = p[i].y; in gdImageFilledPolygon()
2748 for (y = miny; y <= maxy; y++) { in gdImageFilledPolygon()
2761 y1 = p[ind1].y; in gdImageFilledPolygon()
2762 y2 = p[ind2].y; in gdImageFilledPolygon()
2767 y2 = p[ind1].y; in gdImageFilledPolygon()
2768 y1 = p[ind2].y; in gdImageFilledPolygon()
2778 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2779 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2780 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
2787 gdImageLine(im, im->polyInts[i], y, im->polyInts[i + 1], y, fill_color); in gdImageFilledPolygon()
2869 int x, y; in gdImageCompare() local
2906 for (y = 0; y < sy; y++) { in gdImageCompare()
2908 p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y); in gdImageCompare()
2909 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()
3098 unsigned int y; in gdImagePaletteToTrueColor() local
3117 for (y = 0; y < sy; y++) { in gdImagePaletteToTrueColor()
3118 const unsigned char *src_row = src->pixels[y]; in gdImagePaletteToTrueColor()
3122 src->tpixels[y] = (int *) gdMalloc(sx * sizeof(int)); in gdImagePaletteToTrueColor()
3123 if (src->tpixels[y] == NULL) { in gdImagePaletteToTrueColor()
3127 dst_row = src->tpixels[y]; in gdImagePaletteToTrueColor()
3140 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()
3158 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()