[cairo] how to draw sharp curves?

Arjen Nienhuis a.g.nienhuis at gmail.com
Tue Feb 16 03:31:03 PST 2010


On Tue, Feb 16, 2010 at 6:28 AM, Salman Jeelani
<salmanjeelani2003 at yahoo.com> wrote:
> i want to know how to draw sharp curves. i have drawn some curves and export it to png file and seen that its edges are bit stingy not a sharp straight line. And when i enlarge the png file image got more blurred. i really appreciate any suggestion for this issue.
> please find attach a sample image file.
> Regards,

Those curves look fine. The text looks bad.

Some viewers or tools that handle PNG files have trouble with the
anti-aliased lines on a transparent background. It might help to first
draw a white background.

Why don't you start with a larger image instead of enlarging it later?

> M Salman

More information about the cairo mailing list