[cairo] problem with BitBlt

Michael Gurnett gurnett at glocalnet.net
Sun Aug 31 02:10:06 PDT 2008


Tried with cairo_paint_with_alpha, but that didn't seem to work.


  ----- Original Message ----- 
  From: Michael Gurnett 
  To: cairo at cairographics.org 
  Sent: Sunday, August 31, 2008 2:27 AM
  Subject: [cairo] problem with BitBlt


  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


------------------------------------------------------------------------------


  _______________________________________________
  cairo mailing list
  cairo at cairographics.org
  http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080831/0a5a9a88/attachment.html 


More information about the cairo mailing list