Lines Matching refs:y2
843 int x1, y1, x2, y2; in gdImageBrushApply() local
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()
1028 y1 = y2; in gdImageVLine()
1029 y2 = t; in gdImageVLine()
1032 for (;y1 <= y2; y1++) { 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()
1096 y = y2; in gdImageLine()
1112 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1158 if (y1 > y2) { in gdImageLine()
1159 y = y2; in gdImageLine()
1166 yend = y2; 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()
1265 y1 = y2; in gdImageAALine()
1266 y2 = tmp; in gdImageAALine()
1268 dy = y2 - y1; in gdImageAALine()
1293 y1 = y2; in gdImageAALine()
1294 y2 = tmp; 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()
1348 y = y2; in gdImageDashedLine()
1358 if (((y2 - y1) * ydirflag) > 0) { in gdImageDashedLine()
1395 if (y1 > y2) { in gdImageDashedLine()
1396 y = y2; in gdImageDashedLine()
1403 yend = y2; 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()
2096 if (y2 < y1) { in gdImageRectangle()
2098 y1 = y2; in gdImageRectangle()
2099 y2 = t; in gdImageRectangle()
2116 y2lr = y2 + half; in gdImageRectangle()
2152 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2153 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2156 gdImageLine(im, x1, y2, x2, y2, 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()
2178 if (y1 > y2) { in _gdImageFilledHRectangle()
2180 y1 = y2; in _gdImageFilledHRectangle()
2181 y2 = y; in _gdImageFilledHRectangle()
2196 if (y2 >= gdImageSY(im)) { in _gdImageFilledHRectangle()
2197 y2 = gdImageSY(im) - 1; 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()
2222 if (y1 > y2) { in _gdImageFilledVRectangle()
2224 y1 = y2; in _gdImageFilledVRectangle()
2225 y2 = y; in _gdImageFilledVRectangle()
2240 if (y2 >= gdImageSY(im)) { in _gdImageFilledVRectangle()
2241 y2 = gdImageSY(im) - 1; 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()
2680 int x2, y2; in gdImageFilledPolygon() local
2759 y2 = p[ind2].y; in gdImageFilledPolygon()
2760 if (y1 < y2) { in gdImageFilledPolygon()
2763 } else if (y1 > y2) { in gdImageFilledPolygon()
2764 y2 = p[ind1].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()
2777 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
3046 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3066 if (y2 < 0) { in gdImageSetClip()
3067 y2 = 0; in gdImageSetClip()
3069 if (y2 >= im->sy) { in gdImageSetClip()
3070 y2 = im->sy - 1; in gdImageSetClip()
3075 im->cy2 = y2; in gdImageSetClip()