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

AreaEllipse

Add a ellipse to areainfo list for areafill.

Declaration

Source position: agraphics.pas line 2073

function AreaEllipse(

  Rp: PRastPort;

  xCenter: SmallInt;

  yCenter: SmallInt;

  a: SmallInt;

  b: SmallInt

):LongWord;

Arguments

Rp

  

A pointer to a RastPort structure

xCenter

  

X coordinate of the centerpoint relative to the rastport.

yCenter

  

Y coordinate of the centerpoint relative to the rastport.

a

  

The horizontal radius of the ellipse (note: a must be > 0)

b

  

The vertical radius of the ellipse (note: b must be > 0)

Function result

0 for success, or -1 if there is no space left in the vector list

Description

Add an ellipse to the vector buffer. It will be draw when AreaEnd() is called.

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.

AreaCircle

  

Draws a Circle in an Area

AreaEnd

  

Process table of vectors and ellipses and produce areafill.


Documentation generated on: 2021-07-30