Process table of vectors and ellipses and produce areafill.
Source position: agraphics.pas line 2266
function AreaEnd( |
rp: pRastPort |
):LongInt; |
rp |
|
A pointer to a RastPort structure which specifies where the filled regions will be rendered to. |
0 for success, or -1 if an error occurred anywhere.
Trigger the filling operation. Process the vector buffer and generate required fill into the raster planes. After the fill is complete, reinitialize for the next AreaMove or AreaEllipse. Use the raster set up by InitTmpRas when generating an areafill mask.
There is still a problem when some polygons are filled that pixels are missing. This could be due to the way lines are drawn. All lines should be drawn from lower y coordinates to higher y coordinates since this is the way the algorithm calculates lines here. For example, it might make a difference whether a line is drawn from lower to higher y coordinates.
|
Initialize vector collection matrix |
|
|
Define a new starting point for a new shape in the vector list. |
|
|
Add a point to a list of end points for areafill. |
|
|
Add a ellipse to areainfo list for areafill. |
|
|
Draws a Circle in an Area |