[cairo] disable antialias for a surface

Jian Ye jiany at cdpcom.com
Thu Mar 5 06:48:05 PST 2015


Through private email, I got some advice from a user:

>   cairo_pattern_set_filter controls how images are
>   anti-aliased when you use them as a source pattern

cairo_pattern_set_filter( ) did resolve my bar code problem.

Jian




On 3/3/2015 10:07 AM, Jian Ye wrote:
>
> A little more detail about my bar code.
>
> When there is no scaling, it shows fine. But with scaling, the edges 
> become blurred.
>
> I hope there is a way to make it sharp even with scaling.
>
> Thanks,
>
> Jian
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150305/acecdfd4/attachment.html>


More information about the cairo mailing list