On 03/19/12 17:59, Greg Ercolano wrote: > On 03/19/12 15:09, J. Liles wrote: >> On Mon, Mar 19, 2012 at 2:57 PM, Ian MacArthur <imacart...@gmail.com> wrote: >> I've done this mainly because, despite spending many hours >> of trial and error, I cannot seem to get Cairo to reliably draw 1px >> thick lines at integer coordinates (even using the device space >> translations and the 0.5 offset trick). Sometimes the lines are 1px, >> sometimes they are 2px, and this results in lots of little drawing >> errors. > > Perhaps this helps, which talks about why the 0.5 > doesn't always work: > > http://projecthamster.wordpress.com/2009/12/22/getting-sharp-pixels-and-actually-something-drawn-using-cairo/ > > It refers to the cairo faq, emphasizing the 0.5 offset > only works if you offset "in the appropriate direction", > details here: > http://www.cairographics.org/FAQ/#sharp_lines
Oh, and disabling anti-aliasing might also be the issue: http://stackoverflow.com/questions/3915299/how-to-draw-horizontal-vertical-lines-one-pixel-wide-in-quartz _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev