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


All forums · Statistics · Search ·

Two Pilots forum / For software developers / Coloured Lines
Author Message
Droid44
Member
# Posted: 14 May 2007 04:44


Hi

I am using PDF Creator Pilot 3.4 and I cannot draw a coloured line. The code I use is below but the line is always black rather than grey

With PDF
.PDFPAGE_SetRGBColorStroke 190, 190, 190
.PDFPAGE_SetLineWidth 1
.PDFPAGE_MoveTo 178, 280
.PDFPAGE_LineTo 178, 290
.PDFPAGE_Stroke
End With

Droid44
Member
# Posted: 14 May 2007 05:20


Solved the problem...

You have to divide the RGB colours by 255 it only accepts the range 0 to 1

 

 

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

 

Page top