Lines Matching refs:y1
684 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument
691 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
697 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
706 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
711 *y1 -= (int)(m * *x1); in clip_1d()
718 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
719 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
724 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
725 *y1 -= (int)(m * *x1); in clip_1d()
813 int x1, y1, x2, y2; in gdImageBrushApply() local
821 y1 = y - hy; in gdImageBrushApply()
822 y2 = y1 + gdImageSY(im->brush); in gdImageBrushApply()
830 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
845 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
861 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
969 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1074 static void gdImageVLine(gdImagePtr im, int x, int y1, int y2, int col) in gdImageVLine() argument
1078 gdImageFilledRectangle(im, x - thickhalf, y1, x + im->thick - thickhalf - 1, y2, col); in gdImageVLine()
1080 if (y2 < y1) { in gdImageVLine()
1081 int t = y1; in gdImageVLine()
1082 y1 = y2; in gdImageVLine()
1086 for (;y1 <= y2; y1++) { in gdImageVLine()
1087 gdImageSetPixel(im, x, y1, col); in gdImageVLine()
1094 void gdImageLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageLine() argument
1107 gdImageAALine(im, x1, y1, x2, y2, im->AA_color); in gdImageLine()
1112 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1117 dy = abs (y2 - y1); in gdImageLine()
1120 gdImageVLine(im, x1, y1, y2, color); in gdImageLine()
1123 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1155 y = y1; in gdImageLine()
1166 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1212 if (y1 > y2) { in gdImageLine()
1215 yend = y1; in gdImageLine()
1218 y = y1; in gdImageLine()
1290 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
1298 gdImageLine(im, x1, y1, x2, y2, col); in gdImageAALine()
1303 if (!clip_1d(&x1,&y1,&x2,&y2,gdImageSX(im)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageAALine()
1308 dy = y2 - y1; in gdImageAALine()
1318 tmp = y1; in gdImageAALine()
1319 y1 = y2; in gdImageAALine()
1322 dy = y2 - y1; in gdImageAALine()
1324 y = y1; in gdImageAALine()
1346 tmp = y1; in gdImageAALine()
1347 y1 = y2; in gdImageAALine()
1350 dy = y2 - y1; in gdImageAALine()
1355 for (y = y1; y <= y2; y++) { in gdImageAALine()
1374 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1384 dy = abs(y2 - y1); in gdImageDashedLine()
1407 y = y1; in gdImageDashedLine()
1412 if (((y2 - y1) * ydirflag) > 0) { in gdImageDashedLine()
1449 if (y1 > y2) { in gdImageDashedLine()
1452 yend = y1; in gdImageDashedLine()
1455 y = y1; in gdImageDashedLine()
2140 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2145 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2146 gdImageSetPixel(im, x1, y1, color); in gdImageRectangle()
2150 if (y2 < y1) { in gdImageRectangle()
2151 t=y1; in gdImageRectangle()
2152 y1 = y2; in gdImageRectangle()
2167 y1ul = y1 - half; in gdImageRectangle()
2206 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2207 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2209 gdImageLine(im, x1, y1, x2, y1, color); in gdImageRectangle()
2211 gdImageLine(im, x1, y1 + 1, x1, y2 - 1, color); in gdImageRectangle()
2212 gdImageLine(im, x2, y1 + 1, x2, y2 - 1, color); in gdImageRectangle()
2217 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2221 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2222 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledHRectangle()
2232 if (y1 > y2) { in _gdImageFilledHRectangle()
2233 y = y1; in _gdImageFilledHRectangle()
2234 y1 = y2; in _gdImageFilledHRectangle()
2246 if (y1 < 0) { in _gdImageFilledHRectangle()
2247 y1 = 0; in _gdImageFilledHRectangle()
2255 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2261 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2265 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2266 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledVRectangle()
2276 if (y1 > y2) { in _gdImageFilledVRectangle()
2277 y = y1; in _gdImageFilledVRectangle()
2278 y1 = y2; in _gdImageFilledVRectangle()
2290 if (y1 < 0) { in _gdImageFilledVRectangle()
2291 y1 = 0; in _gdImageFilledVRectangle()
2298 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2305 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2307 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2733 int x1, y1; in gdImageFilledPolygon() local
2812 y1 = p[ind1].y; in gdImageFilledPolygon()
2814 if (y1 < y2) { in gdImageFilledPolygon()
2817 } else if (y1 > y2) { in gdImageFilledPolygon()
2819 y1 = p[ind2].y; in gdImageFilledPolygon()
2829 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2830 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
3100 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3114 if (y1 < 0) { in gdImageSetClip()
3115 y1 = 0; in gdImageSetClip()
3117 if (y1 >= im->sy) { in gdImageSetClip()
3118 y1 = im->sy - 1; in gdImageSetClip()
3127 im->cy1 = y1; in gdImageSetClip()