[cairo] problem with BitBlt

Michael Gurnett gurnett at glocalnet.net
Sun Aug 31 02:16:51 PDT 2008


Am I right in guessing thas it is BitBlt that doesn't support alpha values, and if so is there a better alternative?

Michael
  ----- 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/ec4296b9/attachment.html 


More information about the cairo mailing list