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 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()
1067 if (x2 < x1) { in gdImageHLine()
1068 int t = x2; in gdImageHLine()
1069 x2 = x1; in gdImageHLine()
1073 for (;x1 <= x2; x1++) { in gdImageHLine()
1100 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1113 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1118 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im))) { in gdImageLine()
1122 dx = abs (x2 - x1); in gdImageLine()
1129 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1154 if (x1 > x2) { in gdImageLine()
1155 x = x2; in gdImageLine()
1163 xend = x2; in gdImageLine()
1220 x = x2; in gdImageLine()
1236 if (((x2 - x1) * xdirflag) > 0) { in gdImageLine()
1296 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1306 x1 += (y1 * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1310 x2 += (y2 * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1319 x1 -= ((im->sy - y1) * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1323 x2 -= ((im->sy - y2) * (x1 - x2)) / (y2 - y1); in gdImageAALine()
1328 if (x1 < 0 && x2 < 0) { in gdImageAALine()
1332 y1 += (x1 * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1335 if (x2 < 0) { in gdImageAALine()
1336 y2 += (x2 * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1337 x2 = 0; in gdImageAALine()
1340 if (x1 >= im->sx && x2 >= im->sx) { in gdImageAALine()
1344 y1 -= ((im->sx - x1) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1347 if (x2 >= im->sx) { in gdImageAALine()
1348 y2 -= ((im->sx - x2) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1349 x2 = im->sx - 1; in gdImageAALine()
1352 dx = x2 - x1; in gdImageAALine()
1361 x1 = x2; in gdImageAALine()
1362 x2 = tmp; in gdImageAALine()
1366 dx = x2 - x1; in gdImageAALine()
1372 while ((x >> 16) <= x2) { in gdImageAALine()
1383 x1 = x2; in gdImageAALine()
1384 x2 = tmp; in gdImageAALine()
1388 dx = x2 - x1; in gdImageAALine()
1407 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1416 dx = abs(x2 - x1); in gdImageDashedLine()
1434 if (x1 > x2) { in gdImageDashedLine()
1435 x = x2; in gdImageDashedLine()
1443 xend = x2; in gdImageDashedLine()
1485 x = x2; in gdImageDashedLine()
1495 if (((x2 - x1) * xdirflag) > 0) { in gdImageDashedLine()
1875 int l, x1, x2, dy; in gdImageFill() local
1932 FILL_POP(y, x1, x2, dy); in gdImageFill()
1953 if (x>x2+1) { 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()
1959 } while (x<=x2); in gdImageFill()
1970 int i, l, x1, x2, dy; in _gdImageFillTiled() local
2001 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2025 if (x>x2+1) { 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()
2030 } while (x<=x2); in _gdImageFillTiled()
2043 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2045 int x1h = x1, x1v = x1, y1h = y1, y1v = y1, x2h = x2, x2v = x2, y2h = y2, y2v = y2; in gdImageRectangle()
2049 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2060 x1 = x2; in gdImageRectangle()
2061 x2 = t; in gdImageRectangle()
2064 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2072 x2lr = x2 + half; in gdImageRectangle()
2118 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2123 if (x1 == x2 && y1 == y2) { in gdImageFilledRectangle()
2128 if (x1 > x2) { in gdImageFilledRectangle()
2130 x1 = x2; in gdImageFilledRectangle()
2131 x2 = x; in gdImageFilledRectangle()
2144 if (x2 >= gdImageSX(im)) { in gdImageFilledRectangle()
2145 x2 = gdImageSX(im) - 1; in gdImageFilledRectangle()
2157 for (x = x1; (x <= x2); x++) { in gdImageFilledRectangle()
2572 typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); in gdImagePolygon()
2623 int x2, y2; in gdImageFilledPolygon() local
2692 x2 = p[ind2].x; in gdImageFilledPolygon()
2696 x2 = p[ind1].x; in gdImageFilledPolygon()
2706 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2708 im->polyInts[ints++] = x2; in gdImageFilledPolygon()
2981 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
2989 if (x2 < 0) { in gdImageSetClip()
2990 x2 = 0; in gdImageSetClip()
2992 if (x2 >= im->sx) { in gdImageSetClip()
2993 x2 = im->sx - 1; in gdImageSetClip()
3009 im->cx2 = x2; in gdImageSetClip()