[cairo] Drawing diagonal lines with antialiasing off

Jordi Mas jordi at ximian.com
Tue Sep 27 01:26:42 PDT 2005


Hi folks,

When turning off the antialiasing (CAIRO_ANTIALIAS_NONE) and drawing a
vertical line, it gets rendered as two pixel width instead of one.
Is there any way using a cairo function to override this behaviour?

I'm attaching a very simple case to reproduce the issue and the
generated image.

Thanks a lot,

-- 
Jordi Mas i Hernàndez - Mono development team - http://www.mono-project.com
Homepage and LiveJournal at http://www.softcatala.org/~jmas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: case.c
Type: text/x-csrc
Size: 664 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050927/0d063c67/case.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: case.png
Type: image/png
Size: 177 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050927/0d063c67/case.png


More information about the cairo mailing list