PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawPie Method / drawPie(PDFPen,PDFBrush,double,double,double,double,double,double) Method
that determines the color, width, and style of the pie shape.
that determines the characteristics of the fill.
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.
Collapse All Expand All
In This Topic

drawPie(PDFPen,PDFBrush,double,double,double,double,double,double) Method
In This Topic
Draws and fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Syntax

    public void drawPie(
       PDFPen pen,
       PDFBrush brush,
       double x,
       double y,
       double width,
       double height,
       double startAngle,
       double sweepAngle
    )

#### Parameters

pen
  that determines the color, width, and style of the pie shape.
brush
  that determines the characteristics of the fill.
x
  The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
y
  The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
width
  Width of the bounding rectangle that defines the ellipse from which the pie shape comes.
height
  Height of the bounding rectangle that defines the ellipse from which the pie shape comes.
startAngle
  Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAngle
  Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.