Lines Matching refs:x2

804 	int x1, y1, x2, y2;  in gdImageBrushApply()  local
816 x2 = x1 + gdImageSX(im->brush); in gdImageBrushApply()
823 for (lx = x1; (lx < x2); lx++) { in gdImageBrushApply()
838 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
854 for (lx = x1; lx < x2; lx++) { in gdImageBrushApply()
1061 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1063 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1067 _gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1069 if (x2 < x1) { in gdImageHLine()
1070 int t = x2; in gdImageHLine()
1071 x2 = x1; in gdImageHLine()
1075 for (;x1 <= x2; x1++) { in gdImageHLine()
1102 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1115 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1120 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1124 dx = abs (x2 - x1); in gdImageLine()
1131 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1156 if (x1 > x2) { in gdImageLine()
1157 x = x2; in gdImageLine()
1165 xend = x2; in gdImageLine()
1222 x = x2; in gdImageLine()
1238 if (((x2 - x1) * xdirflag) > 0) { in gdImageLine()
1298 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1305 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageAALine()
1309 dx = x2 - x1; in gdImageAALine()
1318 x1 = x2; in gdImageAALine()
1319 x2 = tmp; in gdImageAALine()
1323 dx = x2 - x1; in gdImageAALine()
1329 for (x = x1; x <= x2; x++) { in gdImageAALine()
1346 x1 = x2; in gdImageAALine()
1347 x2 = tmp; in gdImageAALine()
1351 dx = x2 - x1; in gdImageAALine()
1376 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1385 dx = abs(x2 - x1); in gdImageDashedLine()
1403 if (x1 > x2) { in gdImageDashedLine()
1404 x = x2; in gdImageDashedLine()
1412 xend = x2; in gdImageDashedLine()
1454 x = x2; in gdImageDashedLine()
1464 if (((x2 - x1) * xdirflag) > 0) { in gdImageDashedLine()
1857 int l, x1, x2, dy; in gdImageFill() local
1914 FILL_POP(y, x1, x2, dy); in gdImageFill()
1935 if (x>x2+1) { in gdImageFill()
1936 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1938 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
1941 } while (x<=x2); in gdImageFill()
1952 int i, l, x1, x2, dy; in _gdImageFillTiled() local
1983 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2007 if (x>x2+1) { in _gdImageFillTiled()
2008 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2010 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2012 } while (x<=x2); in _gdImageFillTiled()
2025 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2027 int x1h = x1, x1v = x1, y1h = y1, y1v = y1, x2h = x2, x2v = x2, y2h = y2, y2v = y2; in gdImageRectangle()
2031 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2042 if (x2 < x1) { in gdImageRectangle()
2044 x1 = x2; in gdImageRectangle()
2045 x2 = t; in gdImageRectangle()
2048 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2056 x2lr = x2 + half; in gdImageRectangle()
2093 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2094 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2106 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2110 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2115 if (x1 > x2) { in _gdImageFilledHRectangle()
2117 x1 = x2; in _gdImageFilledHRectangle()
2118 x2 = x; in _gdImageFilledHRectangle()
2131 if (x2 >= gdImageSX(im)) { in _gdImageFilledHRectangle()
2132 x2 = gdImageSX(im) - 1; in _gdImageFilledHRectangle()
2143 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle()
2150 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2154 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2159 if (x1 > x2) { in _gdImageFilledVRectangle()
2161 x1 = x2; in _gdImageFilledVRectangle()
2162 x2 = x; in _gdImageFilledVRectangle()
2175 if (x2 >= gdImageSX(im)) { in _gdImageFilledVRectangle()
2176 x2 = gdImageSX(im) - 1; in _gdImageFilledVRectangle()
2188 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle()
2194 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2196 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2590 typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); in gdImagePolygon()
2641 int x2, y2; in gdImageFilledPolygon() local
2685 x1 = x2 = p[0].x; in gdImageFilledPolygon()
2689 } else if (p[i].x > x2) { in gdImageFilledPolygon()
2690 x2 = p[i].x; in gdImageFilledPolygon()
2693 gdImageLine(im, x1, miny, x2, miny, c); in gdImageFilledPolygon()
2723 x2 = p[ind2].x; in gdImageFilledPolygon()
2727 x2 = p[ind1].x; in gdImageFilledPolygon()
2737 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2739 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
3012 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3020 if (x2 < 0) { in gdImageSetClip()
3021 x2 = 0; in gdImageSetClip()
3023 if (x2 >= im->sx) { in gdImageSetClip()
3024 x2 = im->sx - 1; in gdImageSetClip()
3040 im->cx2 = x2; in gdImageSetClip()