[cairo] API request: obtain the trapezoids that are outside
of the surface
Carl Worth
cworth at cworth.org
Wed Jan 5 13:18:20 PST 2005
On Tue, 24 Aug 2004 18:36:34 +0200, Jost Boekemeier wrote:
> BTW: I assumed that RENDER keeps the trapezoids that cairo sends to it,
> so that it can scale the picture upon request:
>
> cairo_save(cr);
> cairo_set_target_surface(cr, parent);
> cairo_scale(cr, 10, 10);
> cairo_surface_show(cr, surface);
> cairo_restore(cr);
>
> It seems that RENDER only keeps the image of surface, but not the
> trapezoids. Is that a bug?
No, that's just the way RENDER is designed. And it's the same thing
for the contents of a cairo surface. If you want things to scale up
nicely, you'll want to call cairo_scale before you do whatever drawing
operations give you the contents of that surface.
-Carl
More information about the cairo
mailing list