The end line shape depends on PdfContentByte.setLineCap(). Best Regards, Paulo Soares
----- Original Message ----- From: "David Thielen" <[EMAIL PROTECTED]> To: "itext" <[EMAIL PROTECTED]> Sent: Saturday, January 11, 2003 4:19 Subject: Re: [iText-questions] moveTo, lineTo - what are the coordinates? > Hi; > > I may not have explained this very well. First, I have to write my > various lines at different times and get them to join up seamlessly. To > make it all one path would require some very painful coding. Plus the > line width & dashes change from segment to segment. > > So lets say I am drawing a horizontal line (all coordinates in pixels) > from 12,24 to 50,24. And I am drawing a vertical line from 12,24 to 12, > 60. And I want a nice square corner. And both lines are 3 pixels wide. > > Then if I do moveTo(11,24) / lineTo (51,24) I should get 3 lines (in > pixels) 11,23->51,23; 11,24->51,24; 11,25->51,25. > Then if I do moveTo(12,23) / lineTo (12,61) I should get 3 lines (in > pixels) 11,23->11,61; 12,23->12,61; 13,23->13,61. > > And in this case the upper left pixel of the corner should be 11,23 and > it should coem out square. But it doesn't. > > thanks - help - dave > > > > ----- Original Message ----- > From: David Thielen <mailto:[EMAIL PROTECTED]> > To: itext <mailto:[EMAIL PROTECTED]> > Sent: Friday, January 10, 2003 9:03 PM > Subject: [iText-questions] moveTo, lineTo - what are the coordinates? > > Hi; > > When I do a moveTo/lineTo - the coordinates are to what part of the > end-point. I am having a problem getting two lines to join properly if I > draw them seperately. I am assuming that the endpoints are in the center > of the width of the line - is that true? > > thanks - dave > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions