Lines Matching refs:y1

676 static int clip_1d(int *x0, int *y0, int *x1, int *y1, int maxdim) {  in clip_1d()  argument
683 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
689 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
698 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
703 *y1 -= (int)(m * *x1); in clip_1d()
710 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
711 *y1 += (int)(m * (maxdim - *x1)); in clip_1d()
716 m = (*y1 - *y0)/(double)(*x1 - *x0); /* calculate the slope of the line */ in clip_1d()
717 *y1 -= (int)(m * *x1); in clip_1d()
802 int x1, y1, x2, y2; in gdImageBrushApply() local
810 y1 = y - hy; in gdImageBrushApply()
811 y2 = y1 + gdImageSY(im->brush); in gdImageBrushApply()
819 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
834 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
850 for (ly = y1; ly < y2; ly++) { in gdImageBrushApply()
1059 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color);
1080 static void gdImageVLine(gdImagePtr im, int x, int y1, int y2, int col) in gdImageVLine() argument
1084 gdImageFilledRectangle(im, x - thickhalf, y1, x + im->thick - thickhalf - 1, y2, col); in gdImageVLine()
1086 if (y2 < y1) { in gdImageVLine()
1087 int t = y1; in gdImageVLine()
1088 y1 = y2; in gdImageVLine()
1092 for (;y1 <= y2; y1++) { in gdImageVLine()
1093 gdImageSetPixel(im, x, y1, col); in gdImageVLine()
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)-1) || !clip_1d(&y1,&x1,&y2,&x2,gdImageSY(im)-1)) { in gdImageLine()
1123 dy = abs (y2 - y1); in gdImageLine()
1126 gdImageVLine(im, x1, y1, y2, color); in gdImageLine()
1129 gdImageHLine(im, y1, x1, x2, color); in gdImageLine()
1161 y = y1; in gdImageLine()
1172 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1218 if (y1 > y2) { in gdImageLine()
1221 yend = y1; in gdImageLine()
1224 y = y1; in gdImageLine()
1296 void gdImageAALine (gdImagePtr im, int x1, int y1, int x2, int y2, int col) in gdImageAALine() argument
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()
2022 void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageRectangle() argument
2024 int x1h = x1, x1v = x1, y1h = y1, y1v = y1, x2h = x2, x2v = x2, y2h = y2, y2v = y2; in gdImageRectangle()
2028 if (x1 == x2 && y1 == y2 && thick == 1) { in gdImageRectangle()
2029 gdImageSetPixel(im, x1, y1, color); in gdImageRectangle()
2033 if (y2 < y1) { in gdImageRectangle()
2034 t=y1; in gdImageRectangle()
2035 y1 = y2; in gdImageRectangle()
2045 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2051 y1ul = y1 - half; in gdImageRectangle()
2090 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2091 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2103 static void _gdImageFilledHRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledHRectangle() argument
2107 if (x1 == x2 && y1 == y2) { in _gdImageFilledHRectangle()
2108 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledHRectangle()
2118 if (y1 > y2) { in _gdImageFilledHRectangle()
2119 y = y1; in _gdImageFilledHRectangle()
2120 y1 = y2; in _gdImageFilledHRectangle()
2132 if (y1 < 0) { in _gdImageFilledHRectangle()
2133 y1 = 0; in _gdImageFilledHRectangle()
2141 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2147 static void _gdImageFilledVRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in _gdImageFilledVRectangle() argument
2151 if (x1 == x2 && y1 == y2) { in _gdImageFilledVRectangle()
2152 gdImageSetPixel(im, x1, y1, color); in _gdImageFilledVRectangle()
2162 if (y1 > y2) { in _gdImageFilledVRectangle()
2163 y = y1; in _gdImageFilledVRectangle()
2164 y1 = y2; in _gdImageFilledVRectangle()
2176 if (y1 < 0) { in _gdImageFilledVRectangle()
2177 y1 = 0; in _gdImageFilledVRectangle()
2184 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2191 void gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) in gdImageFilledRectangle() argument
2193 _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); in gdImageFilledRectangle()
2587 typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); in gdImagePolygon()
2637 int x1, y1; in gdImageFilledPolygon() local
2716 y1 = p[ind1].y; in gdImageFilledPolygon()
2718 if (y1 < y2) { in gdImageFilledPolygon()
2721 } else if (y1 > y2) { in gdImageFilledPolygon()
2723 y1 = p[ind2].y; in gdImageFilledPolygon()
2733 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2734 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
3009 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3023 if (y1 < 0) { in gdImageSetClip()
3024 y1 = 0; in gdImageSetClip()
3026 if (y1 >= im->sy) { in gdImageSetClip()
3027 y1 = im->sy - 1; in gdImageSetClip()
3036 im->cy1 = y1; in gdImageSetClip()