Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.DrawPie
The function draws a pie-shaped wedge bounded by the intersection of an ellipse and two angles.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.DrawPie"; PDF; PosX; PosY; Width; Height; StartAngle; EndAngle; FillMode ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
PosX | X-Coordinate of the midpoint of the pie. | $x |
PosY | Y-Coordinate of the midpoint of the pie. | $y |
Width | Width of the bounding rectangle. | $w |
Height | Height of the bounding rectangle. | $h |
StartAngle | Start Angle. | $StartAngle |
EndAngle | End Angle. | $EndAngle |
FillMode | Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close. | "fill" |
Result
Returns OK or error.
Description
The function draws a pie-shaped wedge bounded by the intersection of an ellipse and two angles.The draw direction can be changed with the function DynaPDF.SetDrawDirection. The start and end angles are always measured counter clockwise independent of the drawing direction.
A pie is a closed path that can be filled, stroked or both. It is also possible to draw a pie invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are described under DynaPDF.ClipPath. The parameter FillMode is ignored if the pie is drawn inside a clipping path. The fill modes are described under DynaPDF.ClosePath.
See also DrawPie function in DynaPDF manual.
See also
- DynaPDF.ClipPath
- DynaPDF.ClosePath
- DynaPDF.DrawArc
- DynaPDF.DrawCircle
- DynaPDF.DrawNGon
- DynaPDF.New
- DynaPDF.SetDrawDirection
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014