Lines Matching refs:y1
678 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) { in clip_1d() argument
685 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
691 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
700 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
705 *y1 -= (int)(m * *x1); in clip_1d()
712 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
713 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
718 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
719 *y1 -= (int)(m * *x1); in clip_1d()
804 int x1, y1, x2, y2; in gdImageBrushApply() local
812 y1 = y - hy; in gdImageBrushApply()
813 y2 = y1 + gdImageSY(im->brush); in gdImageBrushApply()
821 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
836 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
852 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
1061 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1082 static void gdImageVLine(gdImagePtr im, int x, int y1, int y2, int col) in gdImageVLine() argument
1086 gdImageFilledRectangle(im, x - thickhalf, y1, x + im->thick - thickhalf - 1, y2, col); in gdImageVLine()
1088 if (y2 < y1) { in gdImageVLine()
1089 int t = y1; in gdImageVLine()
1090 y1 = y2; in gdImageVLine()
1094 for (;y1 <= y2; y1++) { in gdImageVLine()
1095 gdImageSetPixel(im, x, y1, col); in gdImageVLine()
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()
1125 dy = abs (y2 - y1); in gdImageLine()
1128 gdImageVLine(im, x1, y1, y2, color); in gdImageLine()
1131 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1163 y = y1; in gdImageLine()
1174 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1220 if (y1 > y2) { in gdImageLine()
1223 yend = y1; in gdImageLine()
1226 y = y1; 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()
1310 dy = y2 - y1; in gdImageAALine()
1320 tmp = y1; in gdImageAALine()
1321 y1 = y2; in gdImageAALine()
1324 dy = y2 - y1; in gdImageAALine()
1326 y = y1; in gdImageAALine()
1348 tmp = y1; in gdImageAALine()
1349 y1 = y2; in gdImageAALine()
1352 dy = y2 - y1; in gdImageAALine()
1357 for (y = y1; y <= y2; y++) { in gdImageAALine()
1376 void gdImageDashedLine (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageDashedLine() argument
1386 dy = abs(y2 - y1); in gdImageDashedLine()
1410 y = y1; in gdImageDashedLine()
1415 if (((y2 - y1) * ydirflag) > 0) { in gdImageDashedLine()
1452 if (y1 > y2) { in gdImageDashedLine()
1455 yend = y1; in gdImageDashedLine()
1458 y = y1; in gdImageDashedLine()
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()
2032 gdImageSetPixel(im, x1, y1, color); in gdImageRectangle()
2036 if (y2 < y1) { in gdImageRectangle()
2037 t=y1; in gdImageRectangle()
2038 y1 = y2; in gdImageRectangle()
2048 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2054 y1ul = y1 - 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()
2111 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledHRectangle()
2121 if (y1 > y2) { in _gdImageFilledHRectangle()
2122 y = y1; in _gdImageFilledHRectangle()
2123 y1 = y2; in _gdImageFilledHRectangle()
2135 if (y1 < 0) { in _gdImageFilledHRectangle()
2136 y1 = 0; in _gdImageFilledHRectangle()
2144 for (y = y1; (y <= y2); y++) { 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()
2155 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledVRectangle()
2165 if (y1 > y2) { in _gdImageFilledVRectangle()
2166 y = y1; in _gdImageFilledVRectangle()
2167 y1 = y2; in _gdImageFilledVRectangle()
2179 if (y1 < 0) { in _gdImageFilledVRectangle()
2180 y1 = 0; in _gdImageFilledVRectangle()
2187 for (y = y1; (y <= y2); y++) { 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()
2640 int x1, y1; in gdImageFilledPolygon() local
2719 y1 = p[ind1].y; in gdImageFilledPolygon()
2721 if (y1 < y2) { in gdImageFilledPolygon()
2724 } else if (y1 > y2) { in gdImageFilledPolygon()
2726 y1 = p[ind2].y; in gdImageFilledPolygon()
2736 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2737 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
3012 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3026 if (y1 < 0) { in gdImageSetClip()
3027 y1 = 0; in gdImageSetClip()
3029 if (y1 >= im->sy) { in gdImageSetClip()
3030 y1 = im->sy - 1; in gdImageSetClip()
3039 im->cy1 = y1; in gdImageSetClip()