PRIM_PDF - roundedRect Method

Adds a rectangle with rounded corners to the PDF document

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
Left*InputFloatStarting X coordinate against left edge of the page
Top*InputFloatStarting Y coordinate against upper edge of the page
Width*InputFloatWidth of rectangle
Height*InputFloatHeight of rectangle
RadiusX*InputFloatRadius along X axis
RadiusY*InputFloatRadius along Y axis
FillStyle*Input (Optional)EnumerationPainting style

Details

Adds a rectangle with rounded corners to PDF.

Example

Add a rectangle with rounded corners.
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
 
#pdf.setDrawColor Color(Theme500)
#pdf.setFillColor Color(Theme500)
#pdf.roundedRect Left(10) Top(10) Width(50) Height(30) RadiusX(0.5) RadiusX(0.5) FillStyle(Fill)
 
#pdf.save Filename('myReport.pdf')
 

FillStyle Allowed Values

Enum ValueDescription
StrokeNo fill color
FillFill with current set FillColor
FillAndStrokeFill with current set FillColor and then stroke
DelayPostpones setting the style so that a shape may be composed using multiple method calls


 
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020