Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Graphics
Collapse All

This method creates an elliptical path.

Syntax

HRESULT DrawEllipse (
FLOAT left,
FLOAT top,
FLOAT right,
FLOAT 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 a elliptical path using the top left point at pixel 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 a circle drawn in the clockwise direction, use the DrawArcTo method.

Example

DrawEllipse Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.DrawEllipse(10, 10, 310, 210);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->DrawEllipse(10, 10, 310, 210);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.DrawEllipse(10, 10, 310, 210);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.DrawEllipse 10, 10, 310, 210
PDF.Stroke
PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots