��<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: �������������; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16457"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>unsigned char* image_buffer_main;</DIV>
<DIV> image_buffer_main = (unsigned char*)malloc(100* 100 * 4);
</DIV>
<DIV>cairo_surface_t * cairo_surface_main;</DIV>
<DIV>
<DIV>cairo_surface_main = cairo_image_surface_create_for_data(</DIV>
<DIV> image_buffer_main,</DIV>
<DIV> CAIRO_FORMAT_ARGB32,</DIV>
<DIV> 100,</DIV>
<DIV>
100,</DIV>
<DIV> 100
* 4);</DIV>
<DIV>cairo_t * cairo_image_main;</DIV></DIV>cairo_image_main = cairo_create
(cairo_surface_main);
<DIV> </DIV>
<DIV>
<DIV>unsigned char* image_buffer_sub;</DIV>
<DIV>image_buffer_sub= (unsigned char*)malloc(20* 20* 4); </DIV>
<DIV>cairo_surface_t * cairo_surface_sub;</DIV>
<DIV>
<DIV>cairo_surface_sub= cairo_image_surface_create_for_data(</DIV>
<DIV>image_buffer_sub,</DIV>
<DIV>CAIRO_FORMAT_ARGB32,</DIV>
<DIV>20,</DIV>
<DIV>20,</DIV>
<DIV>20* 4);</DIV>
<DIV>cairo_t * cairo_image_sub;</DIV></DIV>cairo_image_sub= cairo_create
(cairo_surface_sub);</DIV>
<DIV> </DIV>
<DIV>As above codes show, I'd like to buffer something in
"cairo_surface_sub",</DIV>
<DIV>and then use "cairo_surface_sub" as the source of "cairo_image_main".</DIV>
<DIV>I don't know how to connect them, who can help me now?</DIV>
<DIV> </DIV></BODY></HTML>