[cairo] problem with BitBlt

Michael Gurnett gurnett at glocalnet.net
Sat Aug 30 17:27:25 PDT 2008


I have the following bit of code

bckgrnd = new Graphics::TBitmap;
   bckgrnd->Width = ClientWidth;
   bckgrnd->Height = ClientHeight;
 HDC hdc;
 hdc=bckgrnd->Canvas->Handle;
  cairo_pattern_t *pat;
 cairo_surface_t *surface;

 surface = cairo_win32_surface_create (hdc);
 background = cairo_create (surface);

....


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. 

Thanks

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080831/bb3218a6/attachment.html 


More information about the cairo mailing list