回复: some confusion about c airo_surface_t

"%&坏小孩&%" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
er, sorry, I forgot it~~

could'u please show me a sample now?

thks~

------------------ 原始邮件 ------------------

发件人: "Simon Sapin"<[email protected]>;

发送时间: 2013年1月23日(星期三) 晚上8:19

收件人: ""%&坏小孩&%""<[email protected]>;

抄送: "cairo"<[email protected]>;

主题: Re: [cairo] some confusion about cairo_surface_t

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.