<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<RTE_TEXT>Is it possible to set the alpha transparency on an existing color within a surface, and cause that color &amp; anything beneath it to have 0 alpha, completely transparent???<BR>
&nbsp;<BR>
example:<BR>
I want to draw a purple rectangle on a surface, over existing image data.<BR>
Next, I want to make that rectangle completely transparent in the resulting png file (i.e., 'set any/all areas that are purple to 100% transparent on cairo_surface_t *surface'). I dont want any existing colors/graphics that were below the rectangle to show up.<BR>
&nbsp;<BR>
I tried using "set_source_rgba" and setting the alpha to '0.0', but this doesnt cause the underlying colors/images to become transparent...<BR>
&nbsp;<BR>
How can I achieve this effect? similar to gd's "gdImageColorTransparent" function...<BR>
Please help...<BR>
Thanks,<BR>
P.Romero<BR>
</RTE_TEXT><BR><br /><hr />Windows Live™: E-mail. Chat. Share. Get more ways to connect.  <a href='http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Faster_022009' target='_new'>Check it out.</a></body>
</html>