PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllCreates an elliptical curved path.
|
| HRESULT PDFPAGE_Ellipse ( DOUBLE left, DOUBLE top, DOUBLE right, DOUBLE bottom ) |
Parameters
left
X coordinate of the left-top corner of the bounding rectangle.
top
Y coordinate of the left-top corner of the bounding rectangle.
right
X coordinate of the right-bottom corner of the bounding rectangle.
bottom
Y coordinate of the right-bottom corner of the bounding rectangle.
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method creates a elliptical path using the top left point at pixel coordinates (left, top) and the bottom right point at (right, bottom) in a counter-clock-wise direction. After the call, the current point is also at the same location. If you need a circle drawn in the clock-wise direction, please use PDFPAGE_ArcTo method.
Analogue in new interface: IPDFDocument4::DrawEllipse.
Example
Ellipse example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Ellipse(10, 10, 310, 210);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_Ellipse(10, 10, 310, 210); PDF->PDFPAGE_Stroke(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_Ellipse(10, 10, 310, 210); PDF.PDFPAGE_Stroke(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_Ellipse 10, 10, 310, 210 PDF.PDFPAGE_Stroke PDF.EndDoc
See Also


