Page 1 of 1

TPRINTER/HARUPDF Pen

Posted: Sat Mar 07, 2020 9:26 am
by byte-one
If i use the same oPen in tprinter and fwpdf the linewidth of box(...) are different! In tprinter the line are much stronger.
It seems, that box(..) in tprinter not compatible with older versions in case of using a pen-object. If i use oPen:hPen then is ok!

Re: HARUPDF Pen

Posted: Sun Mar 08, 2020 11:57 am
by byte-one
Mr. Nages, in TPrinter:

Code: Select all

ParamPen( anoPen, lNew )
.....
         hPen  := CreatePen( PS_SOLID, aPen[ 2 ] * ::nLogPixelX() / 72, aPen[ 1 ] )   //this calculation should be dependent from cUnits!
.....

Re: TPRINTER/HARUPDF Pen

Posted: Sun Mar 08, 2020 4:09 pm
by nageswaragunupudi
Please see pen.prg and suggest your modifications.

Re: TPRINTER/HARUPDF Pen

Posted: Sun Mar 08, 2020 8:44 pm
by byte-one
Mr. Nages, i have made some modifications on printer.prg and fwpdf.prg to improve this effect! Can i send you (your email??) the files? All modifications are marked with BYTE-ONE.