The methods addPolygon, drawPolygon and fillPolygon in PDPageContentStream is depricated and I don't see why.

Why is it better to write:



for (int i = 0; i < x.length; i++)
{
    if (i == 0)
    {
        contentStream.moveTo(x[i], y[i]);
    }
    else
    {
        contentStream.lineTo(x[i], y[i]);
    }
}
contentStream.closeSubPath();
contentStream.fill();



than simply write:



contentStream.fillPolygon(x, y);



I ask since I want to understand the intention behind depricating these methods. The result of depricating them is that you end up with a for loop anywhere you want to draw a polygon.

Kind regards,
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to