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 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

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