[cairo-bugs] [Bug 30282] Blurry results when scaling+copying a vector surface to an image surface
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Nov 20 08:59:26 PST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=30282
--- Comment #4 from rshann <richard.shann at virgin.net> 2010-11-20 08:59:22 PST ---
I wanted to create a pattern from an SVG file to be use for repeatedly
drawing, and ranm47 on #cairo warned me I might hit this problem. The
code I came up with:
RsvgHandle *handle = rsvg_handle_new_from_file(filename, &error);
cairo_surface_t *surface = cairo_svg_surface_create_for_stream (NULL, NULL,
width, height);
cairo_t *cr = cairo_create(surface);
rsvg_handle_render_cairo(handle, cr);
rsvg_handle_close(handle, NULL);
g_object_unref(handle);
cairo_pattern_t *pattern = cairo_pattern_create_for_surface (surface);
certainly seems to give a blurry result when I use pattern as a mask for
rendering to the final surface.
If this is not another example of the same thing, please let me know!
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list