Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / how to draw rounded rectangle ?
Author Message
Paritosh
Member
# Posted: 14 Nov 2005 14:17


please tell me the information about the parameters for pdf_RoundRect ?
i am using vb.i think 6 parameters need to pass but i don't how what are all they for ?

Stanislav
# Posted: 14 Nov 2005 14:22


Dear Paritosh,

The rectangle will have edges defined by the first two points, the curve of the rounded corners matches the curvature of an ellipse with width X3 and height Y3

PDF.PDFPAGE_SetLineWidth(0.5)
PDF.PDFPAGE_RoundRect 100,100,400,450,50,50
PDF.PDFPAGE_Stroke

Thank you very much !

Best regards,
Stanislav
Two Pilots

Paritosh
Member
# Posted: 14 Nov 2005 15:07


you mean to say third and fourth parameters passed (400,450) in above statement given by you determines the height and width of the rounded rectangle?
please clarify.
and what does the last two parameters determine(50,50)?

Stanislav
# Posted: 14 Nov 2005 15:28


Dear Paritosh,

The first two - X and Y of the top left corner,
the second two - X and Y of the bottom right corner,
last two - width and height of the ellipse which curvature used for round corners.

Thank you very much !

Best regards,
Stanislav
Two Pilots

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top