MCPcopy Index your code
hub / github.com/MapServer/MapServer / imageScanline

Function imageScanline

mapgd.c:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122static void imageScanline(gdImagePtr im, int x1, int x2, int y, int c)
123{
124 int x;
125
126 /* TO DO: This fix (adding if/then) was to address circumstances in the polygon fill code */
127 /* where x2 < x1. There may be something wrong in that code, but at any rate this is safer. */
128
129 if(x1 < x2)
130 for(x=x1; x<=x2; x++) gdImageSetPixel(im, x, y, c);
131 else
132 for(x=x2; x<=x1; x++) gdImageSetPixel(im, x, y, c);
133}
134
135/*
136** Polygon fill. Based on "Concave Polygon Scan Conversion" by Paul

Callers 1

imageFilledPolygonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected