PDFPAGE_Pie
IPDFDocument3 :: PDF page methods

See Also
Collapse All

This method creates an elliptical pie-shaped path between points.

Syntax

HRESULT PDFPAGE_Pie (
DOUBLE left,
DOUBLE top,
DOUBLE right,
DOUBLE bottom,
DOUBLE firstX,
DOUBLE firstY,
DOUBLE secondX,
DOUBLE secondY
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

firstX
X coordinate of the 1st point

firstY
Y coordinate of the 1st point

secondX
X coordinate of the 2nd point

secondY
Y coordinate of the 2nd point

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a path as an elliptical pie that is bounded by the rectangle with left-top corner (left, top) and right-bottom corner (right, bottom). The pie is drawn following the perimeter of the ellipse, counterclockwise, from the starting point to the ending point. The starting point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (firstX, firstY). The ending point is defined by the intersection of the ellipse and a line drawn from the center of the ellipse to the point (secondX, secondY). The current point is the center of the wedge.

Equivalent in new interface: IPDFDocument4::DrawPie.

See Also

Reference