Any good ideas to implement Dash-Dot strokes for polylines?

Regards,
Ramana.JV. 

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:15 AM
To: 'Jaladurgam, Ramana'
Cc: [EMAIL PROTECTED]
Subject: RE: [iText-questions] Implementing dot-dash strokes


If the lines are connected you can have a single moveTo followed by a
sequence of lineTo but the result will always be bizzare with a line width
that is six times bigger than the dot.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 16:03
> To:   'Paulo Soares'
> Cc:   [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Implementing dot-dash strokes
> 
> Hello,
>   I am implementing Dot strokes for a polyline(since polyline is not 
> directly supported, I am drawing using moveTo and lineTo combinations) 
> and at the intersection of lines, I am getting a bizzare look.
>   I am using the following code:
> 
>      mPdfContentByte.setLineWidth(6);
>      mPdfContentByte.setColorStroke(new Color(255, 0, 0));
>      mPdfContentByte.setLineCap(0);
>      mPdfContentByte.setLiteral("[ 1 10 ]0 d\n");
>      for (int lPoint = 0; lPoint < mXValues.length - 1; lPoint++)
>         {
>            //Draw the line
>             mPdfContentByte.moveTo(mXValues[lPoint] , mYValues[lPoint]);
>             mPdfContentByte.lineTo(mXValues[lPoint + 1] , 
> mYValues[lPoint
> +
> 1]);
>         }
>      mPdfContentByte.stroke();
> 
>   The pattern at the intersection of lines is weird. 
>   What could be possible solution to implement this kind of strokes.
>   I am also attaching the PDF file.
> 
> 
> 
> Regards,
> Ramana.JV.
> 
> 
> **********************************************************************
> ****
> ** 
> This email may contain confidential material. 
> If you were not an intended recipient, 
> Please notify the sender and delete all copies. 
> We may monitor email to and from our network. 
> **************************************************************************
> ** << File: Polyline.pdf >> 

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to