DynaPDF Manual - Page 307 Function Reference
Page 307 of 787
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DrawCircle
Syntax:
SI32 pdfDrawCircle(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the midpoint of the circle
double PosY,
// X-Coordinate of the midpoint of the circle
TPathFillMode FillMode) // Fill mode
This function draws a circle. The draw direction can be changed with the function
SetDrawDirection().
A circle is a closed path that can be filled, stroked or both. It is also possible to draw a circle invisible
to apply the filling rules nonzero winding number or even-odd. The filling rules are described at
ClipPath(). The parameter FillMode is ignored if the circle is drawn inside a clipping path. The fill
modes are described at ClosePath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DrawNGon
Syntax:
LBOOL pdfDrawNGon(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the midpoint of the ngon
double PosY,
// Y-Coordinate of the midpoint of the ngon
double Alpha,
// Rotation angle in degrees
UI32 NumSides,
// Number of sides. Must be greater 2.
TPathFillMode FillMode) // Fill mode
The function draws a n-gon. A n-gon is a polygon with "n" number of sides. The minimum number
of sides is three.
A n-gon is a closed path that can be filled, stroked or both. It is also possible to draw a n-gon
invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are
described at ClipPath(). The parameter FillMode is ignored if the circle is drawn inside a clipping
path. The fill modes are described at ClosePath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.

Previous topic: DrawArcEx, DrawChord

Next topic: DrawPie 