PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method creates a rectangular path with rounded corners.
|
| HRESULT DrawRoundRectangle ( FLOAT left, FLOAT top, FLOAT width, FLOAT height, FLOAT cornerWidth, FLOAT cornerHeight ) |
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
width
Width of the rectangle
height
Height of the rectangle
cornerWidth
Width of the corner ellipse
cornerHeight
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.
Example
Round Rectangle Example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.DrawRoundRectangle(100, 100, 200, 100, 45, 60);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->DrawRoundRectangle(100, 100, 200, 100, 45, 60);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.DrawRoundRectangle(100, 100, 200, 100, 45, 60);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.DrawRoundRectangle 100, 100, 200, 100, 45, 60 PDF.Stroke PDF.SaveToFile "test.pdf", true
See Also
Reference


