[cairo] thin antialiased lines

control H control.h at gmail.com
Sun Jul 15 06:44:51 PDT 2007


But that only gives the solution for horizontal and vertical lines,
which I already use (the 0.5 offset thing in pixels).

So how to draw diagonal lines smoothed but 1 pixel thick and in the
correct (non blurred) color?
Or how to draw non anti aliased lines _nice_ lines like gdk_draw_line()?

thanks again.

On 7/15/07, Kalle Vahlman <kalle.vahlman at gmail.com> wrote:
> 2007/7/15, control H <control.h at gmail.com>:
> [snip]
> > So my question is: is there a way to either draw _nice_ non anti
> > aliased lines with cairo, or to draw small anti aliased lines of 1
> > pixel thick and in the correct color? Or is there a way to change the
> > mode in which a line is drawn?
>
> This is not a uncommon issue, and is explained in the FAQ:
>
>   http://cairographics.org/FAQ/#sharp_lines
>
> --
> Kalle Vahlman, zuh at iki.fi
> Powered by http://movial.fi
> Interesting stuff at http://syslog.movial.fi
>


More information about the cairo mailing list