[cairo] how to draw sharp curves?

Dov Grobgeld dov.grobgeld at gmail.com
Mon Feb 15 22:51:04 PST 2010


The blurring of the edges is a natural result of using anti-aliased
graphics, which is a way of "painting between pixels", see
http://en.wikipedia.org/wiki/Anti-aliasing . If it for whatever reason
bothers you, you can turn it off by  calling:

    cairo_set_antialiased(cr, CAIRO_ANTIALIASED_NONE)

The best way of having "non-blurred" graphics at all levels is to provide
the user with vector graphics files, e.g. svg, or pdf.

Regards,
Dov

On Tue, Feb 16, 2010 at 07:28, Salman Jeelani
<salmanjeelani2003 at yahoo.com>wrote:

> hi,
>
> 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,
> M Salman
>
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20100216/972da8a2/attachment.htm 


More information about the cairo mailing list