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

AreaEllipse

Add a ellipse to areainfo list for areafill.

Declaration

Source position: agraphics.pas line 2011

function AreaEllipse(

  Rp: PRastPort;

  XCenter: LongInt;

  YCenter: LongInt;

  a: LongInt;

  b: LongInt

):LongInt;

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