[cairo] Patch for cairo - high resolution images in PDF surface.
cworth at cworth.org
Mon Dec 4 08:23:15 PST 2006
On Sun, 26 Nov 2006 14:24:49 +1100, Andrew McRae wrote:
> Attached is a patch generated against the git mainline - I wasn't
> entirely sure if the right thing to do was to send it here or somewhere
> else. At least I'll learn the right way to do it for next time! :-)
Sending it here is perfect, thanks.
> This patch allows higher resolution images to be embedded in
> PDF surfaces
We definitely want to allow this. If you're getting 72 DPI images
right now I think that's just a bug.
> // Use 300 DPI for image.
> cairo_surface_set_fallback_resolution(img, 300.0, 300.0);
I don't like the above at all. The definition of
"set_fallback_resolution" doesn't apply to an image surface at
all. Instead, for a vector-based surface this function means, "When
drawing to this surface, and an operation cannot be represented in
native vectors, use the given resolution to capture the image data
that will be generated by the fallbacks".
So, we've got that notion in the PDF backend already. Why don't we
just use its fallback resolution to control the results of rendering
image-surface-based source patterns?
I haven't checked how bad that would be in the implementation, but it
seems like the conceptually correct thing to do. Reactions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061204/2b7927d4/attachment.pgp
More information about the cairo