
Le Tue, 21 Feb 2006 08:30:51 -0600, Aaron Spike a écrit :
It seems to me that most all of the functionality needed for flattening out transparency already exists in Inkscape. A rather brute force method could be:
- Replace all strokes with paths
- Decompose all overlapping objects (this would be an additional boolean
op, and it has been requested twice in my recent memory) 3) Replace all area's of overlapping transparency with a bitmap copy. 4) Replace all non overlapping transparency with the resultant color.
Further optimizations would of course be possible. My exploration of cairo and librsvg has only been very casual, but I can't imagine that either of them will be well suited to this sort of decomposition task.
Cairo developper plan is to implement more or less what you have described. Currently, PDF and PS backends only produce rasterized outputs. But they definitely want to use vector operations as much as possible, and only fallback to bitmap when necessary.
On a related note, I've contributed a SVG backend to cairo, which will be included as experimental in next stable release. I guess it could be possible to use poppler + cairo + SVG backend for import of PDF in inkscape.
Regards,
Emmanuel.