DynaPDF Manual - Page 670

Previous Page 669   Index   Next Page 671

Function Reference
Page 670 of 839
RoundRectEx
Syntax:
LBOOL pdfRoundRectEx(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of rectangle
double PosY,
// Y-Coordinate of rectangle
double Width,
// Width of the rectangle
double Height,
// Height of the rectangle
double rWidth,
// Width of an elliptical corner
double rHeight,
// Height of an elliptical corner
TPathFillMode FillMode) // Fill mode
The function draws a rectangle with elliptical corners. The parameter rWidth must not be greater
than the half width of the rectangle and the parameter rHeight must not be greater than the half
height of the rectangle.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the
rectangle. If the coordinate system is top-down it defines the upper left corner.
The draw direction can be changed with the function SetDrawDirection().
A rectangle is a closed path that can be filled, stroked or both. It is also possible to draw a rectangle
invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are
described under ClipPath(). The parameter FillMode is ignored if the rectangle is drawn inside a
clipping path. The fill modes are described under ClosePath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Example:
 

Previous topic: RoundRect

Next topic: SaveGraphicState