[cairo] Correctly copying surfaces
Alexander Shulgin
alex.shulgin at gmail.com
Fri Mar 25 11:08:28 PDT 2011
On Fri, Mar 25, 2011 at 17:38, Felix Lelchuk <FelixLelchuk at web.de> wrote:
>
> Hello!
>
> I'm new to Cairo and I've got a question about copying surfaces.
>
> I'm trying to draw on one image surface and then copy it over to another by creating a pattern and then drawing it using cairo_rectangle and cairo_fill. None of the surfaces has anti-aliasing turned on but I get a blurred (anti-aliased?) image if I scale the pattern by 1.5. It looks like the copied area is rasterized and the copying is actually a "bitmap stretching".
>
> What am I doing wrong? How do I get the expected un-blurred behaviour?
Tried this: http://cairographics.org/manual/cairo-cairo-pattern-t.html#cairo-pattern-set-filter
?
--
Alex
More information about the cairo
mailing list