[cairo] cairo_set_antialias

Michele Cleary clearlymichele at yahoo.com
Fri Mar 27 06:23:47 PDT 2015


 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150327/35795280/attachment.html>


More information about the cairo mailing list