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

InitArea

Initialize vector collection matrix

Declaration

Source position: agraphics.pas line 2336

procedure InitArea(

  areaInfo: pAreaInfo;

  vectorBuffer: POINTER;

  maxVectors: LongInt

);

Arguments

areaInfo

  

A pointer to AreaInfo structure

maxVectors

  

max number of vectors this buffer can hold

Description

This function provides initialization for the vector collection matrix such that it has a size of (max vectors ). The size of the region pointed to by buffer (short pointer) should be five (5) times as large as maxvectors. This size is in bytes. Areafills done by using AreaMove, AreaDraw() and AreaEnd() must have enough space allocated in this table to store all the points of the largest fill. AreaEllipse() takes up two vectors for every call. If AreaMove/AreaDraw()/AreaEllipse() detect too many vectors going into the buffer they will return -1.

See also

AreaEnd

  

Process table of vectors and ellipses and produce areafill.

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.


Documentation generated on: 2021-07-30