Lines Matching refs:y2
813 int x1, y1, x2, y2; in gdImageBrushApply() local
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()
1082 y1 = y2; in gdImageVLine()
1083 y2 = t; in gdImageVLine()
1086 for (;y1 <= y2; y1++) { 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()
1150 y = y2; in gdImageLine()
1166 if (((y2 - y1) * ydirflag) > 0) { in gdImageLine()
1212 if (y1 > y2) { in gdImageLine()
1213 y = y2; in gdImageLine()
1220 yend = y2; 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()
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()
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()
2150 if (y2 < y1) { in gdImageRectangle()
2152 y1 = y2; in gdImageRectangle()
2153 y2 = t; in gdImageRectangle()
2170 y2lr = y2 + half; in gdImageRectangle()
2206 if (x1 == x2 || y1 == y2) { in gdImageRectangle()
2207 gdImageLine(im, x1, y1, x2, y2, color); in gdImageRectangle()
2210 gdImageLine(im, x1, y2, x2, y2, 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()
2232 if (y1 > y2) { in _gdImageFilledHRectangle()
2234 y1 = y2; in _gdImageFilledHRectangle()
2235 y2 = y; in _gdImageFilledHRectangle()
2250 if (y2 >= gdImageSY(im)) { in _gdImageFilledHRectangle()
2251 y2 = gdImageSY(im) - 1; 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()
2276 if (y1 > y2) { in _gdImageFilledVRectangle()
2278 y1 = y2; in _gdImageFilledVRectangle()
2279 y2 = y; in _gdImageFilledVRectangle()
2294 if (y2 >= gdImageSY(im)) { in _gdImageFilledVRectangle()
2295 y2 = gdImageSY(im) - 1; 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()
2734 int x2, y2; in gdImageFilledPolygon() local
2813 y2 = p[ind2].y; in gdImageFilledPolygon()
2814 if (y1 < y2) { in gdImageFilledPolygon()
2817 } else if (y1 > y2) { in gdImageFilledPolygon()
2818 y2 = p[ind1].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()
2831 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
3100 void gdImageSetClip (gdImagePtr im, int x1, int y1, int x2, int y2) in gdImageSetClip() argument
3120 if (y2 < 0) { in gdImageSetClip()
3121 y2 = 0; in gdImageSetClip()
3123 if (y2 >= im->sy) { in gdImageSetClip()
3124 y2 = im->sy - 1; in gdImageSetClip()
3129 im->cy2 = y2; in gdImageSetClip()