Scan-Line Polygon Fill Algorithm - Basic idea: For each scan line crossing a polygon, this algorithm locates the intersection points of the scan line with the polygon edges. These intersection points are shorted from left to right. Then, we fill the pixels between each intersection pair.
Download the Study24x7 App, so you can connect and collaborate.