<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Circular shading is pixelated"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88394#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Circular shading is pixelated"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88394">bug 88394</a>
              from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=112285" name="attach_112285" title="Implement cairo function shading">attachment 112285</a> <a href="attachment.cgi?id=112285&action=edit" title="Implement cairo function shading">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=88394&attachment=112285'>[review]</a>
Implement cairo function shading

The pdf contains a function based shading. Gfx subdivides the shading then
draws each cell with a solid color resulting in a pixelated appearance for both
cairo and splash. This could be fixed by reducing the size of each cell to 1
pixel. However this could significantly increase rendering time as the function
has to be evaluated for each pixel.

The better fix is to interpolate the colors in each cell instead of using solid
fills. I've fixed this for the cairo backend by using cairo mesh gradients to
interpolate the colors in each cell.

I should also point out that the conical gradient in this particular pdf could
have been created with a type 6 shading (coons patch meshes). This would
produce a better result and does not rely on evaluating a type 4 PostScript
calculator function.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>