<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 21, 2011, at 3:41 PM, Maarten Bosmans wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>2011/11/21 Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>>:<br><blockquote type="cite">Dear Experts,<br></blockquote><blockquote type="cite">I am working toward implementing Cairo in GrADS, an open source program for<br></blockquote><blockquote type="cite">the analysis and display of meteorological data. My use of cairo is fairly<br></blockquote><blockquote type="cite">basic. In a test program, I am drawing two adjacent triangles with<br></blockquote><blockquote type="cite">transparency set to 0.50, writing out .pdf and .png formats. A faint line<br></blockquote><blockquote type="cite">shows up along the common boundary of the two triangles (i.e., along the<br></blockquote><blockquote type="cite">diagonal of what should be a solid rectangle). Disabling anti-aliasing makes<br></blockquote><blockquote type="cite">the line go away in the .png file, but it persists in the .pdf. What is<br></blockquote><blockquote type="cite">causing this and is there a remedy?<br></blockquote><br>Well, for the PDF you're also at the mercy of the renderer. It might<br>very well be that it renders incorrectly.<br></div></blockquote>I agree, that is why I test with Acrobat Professional as well as Preview. Anybody have an opinion on which renderer is best? The flip side of that is that many of my users don't have access to good (i.e. costly) renderers, so it really should look okay with the cheesy (i.e., free) ones...</div><div><br><blockquote type="cite"><div><br>I sometimes get better results by using a temporary surface<br>(push_group), drawing multiple things (with the add operator) and then<br>painting the surface with pop_group, paint (wiht the normal over<br>operator).<br></div></blockquote>I will look for some examples in the src/test subdirectory and try this technique. </div><div><br></div><div><br></div><div><blockquote type="cite"><div><br>And of course, you could consider drawing a rectangle instead of two triangles.<br></div></blockquote>What's the fun in solving it THAT way? Actually, the two triangles are just an extreme over-simplification of the kinds of adjacent polygons we are drawing in GrADS. </div><div>--Jennifer</div><div><br></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></body></html>