Re: some confusion about cairo_surface_t

Simon Sapin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Le 23/01/2013 12:17, %&坏小孩&% a écrit :
> could'u please provide me a smaple?
> thanks very much~~

Don’t forget to keep the mailing list in CC, like I did here.


 From your first message (simplified)

> cairo_surface_t * cairo_surface_main =
>     cairo_image_surface_create_for_data(…)
> cairo_t * cairo_image_main = cairo_create (cairo_surface_main);
>
> cairo_surface_t * cairo_surface_sub =
>     cairo_image_surface_create_for_data(…)
>
> I'd like to buffer something in "cairo_surface_sub",
> and then use "cairo_surface_sub" as the source of "cairo_image_main".


cairo_set_source_surface(cairo_image_main, cairo_surface_sub, 0 0);

Then probably something like this, to actually paint the source:

cairo_paint(cairo_image_main);

-- 
Simon Sapin
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.