[cairo] Getting started
behdad at cs.toronto.edu
Mon Jul 25 17:04:30 PDT 2005
On Mon, 25 Jul 2005, Vladimir Vukicevic wrote:
> On 7/25/05, Behdad Esfahbod <behdad at 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
More information about the cairo