Lines Matching refs:y2

802 	int x1, y1, x2, y2;  in gdImageBrushApply()  local
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()
1088 y1 = y2; in gdImageVLine()
1089 y2 = t; in gdImageVLine()
1092 for (;y1 <= y2; y1++) { 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()
1156 y = y2; in gdImageLine()
1172 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1218 if (y1 > y2) { in gdImageLine()
1219 y = y2; in gdImageLine()
1226 yend = y2; 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()
1319 y1 = y2; in gdImageAALine()
1320 y2 = tmp; in gdImageAALine()
1322 dy = y2 - y1; in gdImageAALine()
1347 y1 = y2; in gdImageAALine()
1348 y2 = tmp; 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()
1402 y = y2; in gdImageDashedLine()
1412 if (((y2 - y1) * ydirflag) > 0) { in gdImageDashedLine()
1449 if (y1 > y2) { in gdImageDashedLine()
1450 y = y2; in gdImageDashedLine()
1457 yend = y2; 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()
2033 if (y2 < y1) { in gdImageRectangle()
2035 y1 = y2; in gdImageRectangle()
2036 y2 = t; in gdImageRectangle()
2045 x1h = x1; x1v = x1; y1h = y1; y1v = y1; x2h = x2; x2v = x2; y2h = y2; y2v = y2; in gdImageRectangle()
2054 y2lr = y2 + 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()
2118 if (y1 > y2) { in _gdImageFilledHRectangle()
2120 y1 = y2; in _gdImageFilledHRectangle()
2121 y2 = y; in _gdImageFilledHRectangle()
2136 if (y2 >= gdImageSY(im)) { in _gdImageFilledHRectangle()
2137 y2 = gdImageSY(im) - 1; 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()
2162 if (y1 > y2) { in _gdImageFilledVRectangle()
2164 y1 = y2; in _gdImageFilledVRectangle()
2165 y2 = y; in _gdImageFilledVRectangle()
2180 if (y2 >= gdImageSY(im)) { in _gdImageFilledVRectangle()
2181 y2 = gdImageSY(im) - 1; 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()
2638 int x2, y2; in gdImageFilledPolygon() local
2717 y2 = p[ind2].y; in gdImageFilledPolygon()
2718 if (y1 < y2) { in gdImageFilledPolygon()
2721 } else if (y1 > y2) { in gdImageFilledPolygon()
2722 y2 = p[ind1].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()
2735 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
3009 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3029 if (y2 < 0) { in gdImageSetClip()
3030 y2 = 0; in gdImageSetClip()
3032 if (y2 >= im->sy) { in gdImageSetClip()
3033 y2 = im->sy - 1; in gdImageSetClip()
3038 im->cy2 = y2; in gdImageSetClip()