<div dir="ltr">Hi,<br><br>An easy way to make the initial screen transparent could be to paint it all in any color with transparency set to 100%.<br>I had faced a similar problem earlier in my project. What I did was, painted a rectangle of white color with the required dimensions and painted the rest of the drawings over it.<br>
<br>You can do the same with transparency set to 100% (as in setting &#39;a&#39; part in rgba to 1).<br>I hope it helps.<br><br>Thanks<br>Mukul<br><br><div class="gmail_quote">On Sat, Aug 30, 2008 at 5:27 PM, Michael Gurnett <span dir="ltr">&lt;<a href="mailto:gurnett@glocalnet.net">gurnett@glocalnet.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div bgcolor="#ffffff">
<div><font size="2" face="Arial">I have the following bit of code</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial">bckgrnd = new Graphics::TBitmap;<br>&nbsp;&nbsp; 
bckgrnd-&gt;Width = ClientWidth;<br>&nbsp;&nbsp; bckgrnd-&gt;Height = 
ClientHeight;<br>&nbsp;HDC 
hdc;<br>&nbsp;hdc=bckgrnd-&gt;Canvas-&gt;Handle;<br>&nbsp;&nbsp;cairo_pattern_t 
*pat;<br>&nbsp;cairo_surface_t *surface;<br><br>&nbsp;surface = 
cairo_win32_surface_create (hdc);<br>&nbsp;background = cairo_create 
(surface);</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial">....</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial">The idea is the to draw on the background surface 
and BitBlt it on my paint routine. However, with the code above it appears that 
the initial drawing space is filled white (guessing rgba are all 1). Is there a 
way to get the initial drawing region to be transparant.&nbsp;</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial">Thanks</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div><font color="#888888">
<div><font size="2" face="Arial">Michael</font></div></font></div>
<br>_______________________________________________<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards,<br><br>Mukul Sharma<br>
Centre for High Performance Embedded Systems<br>Nanyang Technological University, Singapore<br><br>&quot;A person who runs from responsibilities, runs from life.&quot;<br><br>"It is easy to hate and it is difficult to love. This is how the whole scheme of things works. All good things are difficult to achieve; and bad things are very easy to get."<br>

</div>