PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method creates 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 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
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.
Equivalent in new interface: IPDFDocument4::DrawRoundRectangle.
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


