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 line
Author Message
Madhuri
Member
# Posted: 11 Oct 2004 19:13


I am not able to draw line (thick or thin line)i have used PDFPAGE_lineto and Moveto.Can anybody help....

Sheraz
# Posted: 12 Oct 2004 14:21


Hi Madhuri,
You can draw a line by simply replacing the values for the parameters in the code below.

PDF.PDFPAGE_SetLineWidth(linewidth) ' set line width here thin or thick
PDF.PDFPAGE_SetRGBColorStroke R,G, B 'color values
PDF.PDFPAGE_MoveTo startx,starty 'starting point
PDF.PDFPAGE_LineTo endx,endy 'ending point

Sheraz

Anonymous
# Posted: 14 Mar 2005 23:53


I was only able to get this to work after I put in a call to PDF.PDFPAGE_Stroke().

I'm guessing you need to call stroke after most of these drawing methods (rectangle, line, etc). Might be nice to have some of this in the documentation. ;)

 

 

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

 

Page top