<HTML><BODY>
<p>Hello,<br>I have a very simple problem. I'm using cairo to draw some text and save it to png format file,using cairo_surface_write_to_png. But, I can't make background transparent. I think, I simply don't get an idea of doing that.<br>I've tried two ways to do that:<br>(Don't work obviously, because simply draws a transparent rectangle)<br>cairo_set_source_rgba(m_cr,1.0,1.0,1.0,0.0f);<br>cairo_rectangle(m_cr,0,0,size_x,size_y); <br>cairo_fill(m_cr);<br>And other, that don't work either:<br>cairo_save(m_cr);<br>        cairo_set_operator(m_cr,CAIRO_OPERATOR_SOURCE);<br>        cairo_set_source_rgba(m_cr,1.0,1.0,1.0,0.0);<br>        cairo_paint(m_cr);<br>        cairo_restore(m_cr);<br>In all cases, all I've got is a white opaque background. What can be used to perform this trick?<br><br></p></BODY></HTML>