Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AreaEnd

Process table of vectors and ellipses and produce areafill.

Declaration

Source position: agraphics.pas line 2266

function AreaEnd(

  rp: pRastPort

):LongInt;

Arguments

rp

  

A pointer to a RastPort structure which specifies where the filled regions will be rendered to.

Function result

0 for success, or -1 if an error occurred anywhere.

Description

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.

Errors

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.

See also

InitArea

  

Initialize vector collection matrix

AreaMove

  

Define a new starting point for a new shape in the vector list.

AreaDraw

  

Add a point to a list of end points for areafill.

AreaEllipse

  

Add a ellipse to areainfo list for areafill.

AreaCircle

  

Draws a Circle in an Area


Documentation generated on: 2021-07-30