PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllCreates a rectangle path with rounded corners.
|
| HRESULT PDFPAGE_RoundRect ( DOUBLE left, DOUBLE top, DOUBLE right, DOUBLE bottom, DOUBLE width, DOUBLE height ) |
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.
width
Width of the corner ellipse.
height
Height of the corner ellipse.
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 rectangle with left-top corner at (left, top) and right-bottom corner at (right, bottom). The curve of the rounded corners matches the curvature of an ellipse with width and height equal to width and height.
Example
Round rectangle example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_RoundRect(200, 100, 410, 310, 50, 50);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_RoundRect(200, 100, 410, 310, 50, 50); PDF->PDFPAGE_Stroke(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_RoundRect(200, 100, 410, 310, 50, 50); PDF.PDFPAGE_Stroke(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_RoundRect 200, 100, 410, 310, 50, 50 PDF.PDFPAGE_Stroke PDF.EndDoc
See Also


