PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method creates an elliptical curved path.
|
| HRESULT PDFPAGE_Ellipse ( DOUBLE left, DOUBLE top, DOUBLE right, DOUBLE bottom ) |
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
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 an elliptical path using the top left point at coordinates (left, top) and the bottom right point at (right, bottom) in a counterclockwise direction. After the call, the current point is also at the same location. If you need an ellipse drawn in the clockwise direction, use the PDFPAGE_ArcTo method.
Equivalent 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


