[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] Getting started
From:       Behdad Esfahbod <behdad () cs ! toronto ! edu>
Date:       2005-07-26 0:04:30
Message-ID: Pine.LNX.4.58.0507252004060.7278 () epoch ! cs
[Download RAW message or body]

On Mon, 25 Jul 2005, Vladimir Vukicevic wrote:

> On 7/25/05, Behdad Esfahbod <behdad@cs.toronto.edu> wrote:
> >   - Do not translate.
> >
> >   - For drawing lines, set width to 1 and add +0.5,+0.5 to all
> > points.
>
> You don't want +0.5,+0.5 to all points though, especially not for
> horizontal/vertical lines.  (See my original reply.)  However, in
> thinking about it, if you use CAIRO_LINE_CAP_SQUARE (instead of the
> default BUTT), then adding +0.5,+0.5 should give you correct (and
> still fast) results.

Sorry, forgot to mention the CAP thing.  Yes, that's what I used
too.

--behdad
http://behdad.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic