cairo_set_antialias
Michele Cleary <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to do the cairo version of xps EdgeMode (aliased). I'm trying to do the following: cairo_set_antialias(cairoContext, CAIRO_ANTIALIAS_BEST); //set to known state in case I don't need to do what's next cairo_set_antialias(cairoContext, CAIRO_ANTIALIAS_NONE); //set it to antialias_none when I see EdgeMode is needed Does anyone have any idea why I'm not seeing any difference in the resulting pdf document when I set it to none vs. best? My original xps is: <FixedPage xmlns="http://schemas.microsoft.com/xps/2005/06" Width="816" Height="1056" xml:lang="en-US"> <Canvas Name = "TestCanvasName" RenderTransform= "1, 0, 0, 1, 0, 290" RenderOptions.EdgeMode= "Aliased"> <Path Data="M 20,60 H 300 V 300 H 300 z" Fill="#FFFF0000" /> <Path Data="M 30,70 H 200 V 200 H 200 z" Fill="#FF1E90FF" /> </Canvas> </FixedPage> For the case without EdgeMode I just remove the RenderOptions.EdgeMode="Aliased" part. Thanks,Mich -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo