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.
****************************************************************************
Polyline.pdf
Description: Binary data
