uiacceltk/hitchcock/coretoolkit/src/huicanvaswsbitgc.cpp
branchRCL_3
changeset 8 10534483575f
parent 0 15bf7259bb7c
child 31 1b6909418757
equal deleted inserted replaced
7:433cbbb6a04b 8:10534483575f
   203 
   203 
   204 TBool CHuiCanvasWsBitGc::IsRenderBufferEnabled() const
   204 TBool CHuiCanvasWsBitGc::IsRenderBufferEnabled() const
   205     {
   205     {
   206     return ETrue;
   206     return ETrue;
   207     }
   207     }
       
   208 
       
   209 void CHuiCanvasWsBitGc::ClearCapturingBufferArea(const TRect& aRect)
       
   210     {
       
   211     if ( iCapturingBitGc )
       
   212         {
       
   213         TRgb clearColor = KRgbBlack;
       
   214 	    clearColor.SetAlpha(0x0);
       
   215         
       
   216 	    iCapturingBitGc->SetDrawMode(CGraphicsContext::EDrawModeWriteAlpha);
       
   217         iCapturingBitGc->SetPenColor(clearColor);
       
   218         iCapturingBitGc->SetBrushColor(clearColor);
       
   219         iCapturingBitGc->SetBrushStyle(CGraphicsContext::ESolidBrush);
       
   220   	    iCapturingBitGc->Clear(aRect);
       
   221         }
       
   222     }