[cairo] how to draw sharp curves?
salmanjeelani2003 at yahoo.com
Tue Feb 16 22:21:39 PST 2010
Thanks for all the support you have provided to us.......i want to know is there any way to change resolution/dpi for image surface?
According to my understanding "cairo_surface_set_fallback_resolution" does not change resolution for image/rasterized surface.
--- On Tue, 2/16/10, Arjen Nienhuis <a.g.nienhuis at gmail.com> wrote:
From: Arjen Nienhuis <a.g.nienhuis at gmail.com>
Subject: Re: [cairo] how to draw sharp curves?
To: "Salman Jeelani" <salmanjeelani2003 at yahoo.com>
Cc: cairo at cairographics.org
Date: Tuesday, February 16, 2010, 3:31 AM
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo