disable antialias for a surface

Jian Ye <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
I need the "disable antialias" feature because some of my bar codes no 
longer have sharp edges comparing with the image I drew through Window's 
DC. I suspect disabling antialias will get the sharp edge back. I also 
suspect antialias slow things down. My batch processing program 
generates many images, so some speedup is quite valuable.

I tested
cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);

It has no effect in my case, and I understand it is just a hint for the 
back end.

I searched the archive and found some messages about "disable subpixel 
antialiasing" from Jan-2011.  It seems that there was no solution at 
that time, hopefully someone can give an update on the current 
situation. Suggestions for improving the bar code is also appreciated.


Thanks,

Jian

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.