DrawRoundRectangle
IPDFDocument4 :: Page Operations :: Graphics

See Also Example
Collapse All

This method creates a rectangular path with rounded corners.

Syntax

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