PRIM_PDF - circle Method

Adds a circle to the PDF document

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
CenterX*InputFloatX Coordinate for the center of the circle
CenterY*InputFloatY Coordinate for the center of the circle
Radius*InputFloatRadius of circle
FillStyle*Input (Optional)EnumerationPainting style

Details

Adds a circle to the PDF document.

Example

Adding a circle
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
 
#pdf.setDrawColor Color(Theme500)
#pdf.setFillColor Color(Theme500)
 
#pdf.circle Centerx(30) Centery(30) Radius(20) 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