Lines Matching refs:y1
714 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument
721 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
727 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
736 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
741 *y1 -= (int)(m * *x1); in clip_1d()
748 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
749 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
754 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
755 *y1 -= (int)(m * *x1); in clip_1d()
843 int x1, y1, x2, y2; in gdImageBrushApply() local
851 y1 = y - hy; in gdImageBrushApply()
852 y2 = y1 + gdImageSY(im->brush); in gdImageBrushApply()
860 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
875 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
891 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
999 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1020 static void gdImageVLine(gdImagePtr im, int x, int y1, int y2, int col) in gdImageVLine() argument
1024 gdImageFilledRectangle(im, x - thickhalf, y1, x + im->thick - thickhalf - 1, y2, col); in gdImageVLine()
1026 if (y2 < y1) { in gdImageVLine()
1027 int t = y1; in gdImageVLine()
1028 y1 = y2; in gdImageVLine()
1032 for (;y1 <= y2; y1++) { in gdImageVLine()
1033 gdImageSetPixel(im, x, y1, col); in gdImageVLine()
1040 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1053 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1058 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1063 dy = abs (y2 - y1); in gdImageLine()
1066 gdImageVLine(im, x1, y1, y2, color); in gdImageLine()
1069 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1101 y = y1; in gdImageLine()
1112 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1158 if (y1 > y2) { in gdImageLine()
1161 yend = y1; in gdImageLine()
1164 y = y1; in gdImageLine()
1236 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1244 gdImageLine(im, x1, y1, x2, y2, col); in gdImageAALine()
1249 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageAALine()
1254 dy = y2 - y1; in gdImageAALine()
1264 tmp = y1; in gdImageAALine()
1265 y1 = y2; in gdImageAALine()
1268 dy = y2 - y1; in gdImageAALine()
1270 y = y1; in gdImageAALine()
1292 tmp = y1; in gdImageAALine()
1293 y1 = y2; in gdImageAALine()
1296 dy = y2 - y1; in gdImageAALine()
1301 for (y = y1; y <= y2; y++) { in gdImageAALine()
1320 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1330 dy = abs(y2 - y1); in gdImageDashedLine()
1353 y = y1; in gdImageDashedLine()
1358 if (((y2 - y1) * ydirflag) > 0) { in gdImageDashedLine()
1395 if (y1 > y2) { in gdImageDashedLine()
1398 yend = y1; in gdImageDashedLine()
1401 y = y1; in gdImageDashedLine()
2086 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2091 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2092 gdImageSetPixel(im, x1, y1, color); in gdImageRectangle()
2096 if (y2 < y1) { in gdImageRectangle()
2097 t=y1; in gdImageRectangle()
2098 y1 = y2; in gdImageRectangle()
2113 y1ul = y1 - half; in gdImageRectangle()
2152 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2153 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2155 gdImageLine(im, x1, y1, x2, y1, color); in gdImageRectangle()
2157 gdImageLine(im, x1, y1 + 1, x1, y2 - 1, color); in gdImageRectangle()
2158 gdImageLine(im, x2, y1 + 1, x2, y2 - 1, color); in gdImageRectangle()
2163 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2167 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2168 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledHRectangle()
2178 if (y1 > y2) { in _gdImageFilledHRectangle()
2179 y = y1; in _gdImageFilledHRectangle()
2180 y1 = y2; in _gdImageFilledHRectangle()
2192 if (y1 < 0) { in _gdImageFilledHRectangle()
2193 y1 = 0; in _gdImageFilledHRectangle()
2201 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2207 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2211 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2212 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledVRectangle()
2222 if (y1 > y2) { in _gdImageFilledVRectangle()
2223 y = y1; in _gdImageFilledVRectangle()
2224 y1 = y2; in _gdImageFilledVRectangle()
2236 if (y1 < 0) { in _gdImageFilledVRectangle()
2237 y1 = 0; in _gdImageFilledVRectangle()
2244 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2251 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2253 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2679 int x1, y1; in gdImageFilledPolygon() local
2758 y1 = p[ind1].y; in gdImageFilledPolygon()
2760 if (y1 < y2) { in gdImageFilledPolygon()
2763 } else if (y1 > y2) { in gdImageFilledPolygon()
2765 y1 = p[ind2].y; in gdImageFilledPolygon()
2775 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2776 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
3046 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3060 if (y1 < 0) { in gdImageSetClip()
3061 y1 = 0; in gdImageSetClip()
3063 if (y1 >= im->sy) { in gdImageSetClip()
3064 y1 = im->sy - 1; in gdImageSetClip()
3073 im->cy1 = y1; in gdImageSetClip()