[Poppler-bugs] [Bug 88394] Circular shading is pixelated

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 15 03:10:42 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88394

--- Comment #2 from Adrian Johnson <ajohnson at redneon.com> ---
Created attachment 112285
  --> https://bugs.freedesktop.org/attachment.cgi?id=112285&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150115/d2a43d20/attachment.html>


More information about the Poppler-bugs mailing list