diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-C3FC557E-72B4-5714-AE21-930F421204D6.dita --- a/Symbian3/PDK/Source/GUID-C3FC557E-72B4-5714-AE21-930F421204D6.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-C3FC557E-72B4-5714-AE21-930F421204D6.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,22 +1,22 @@ - - - - - -Clearing a Rectangle

This topic shows you how to use CBitmapContext::Clear() to clear a rectangle to the current brush color.

TRect largeBox(0,0,100,100); -TRect clearBox(20,20,40,40); - -// draw a cross-hatched box -gc.SetBrushColor(KRgbDarkGray); -gc.SetBrushStyle(CGraphicsContext::ESquareCrossHatchBrush); -gc.DrawRect(largeBox); - -// clear a small rectangle -gc.SetBrushColor(KRgbGray); // change the brush color + + + + + +Clearing a Rectangle

This topic shows you how to use CBitmapContext::Clear() to clear a rectangle to the current brush color.

TRect largeBox(0,0,100,100); +TRect clearBox(20,20,40,40); + +// draw a cross-hatched box +gc.SetBrushColor(KRgbDarkGray); +gc.SetBrushStyle(CGraphicsContext::ESquareCrossHatchBrush); +gc.DrawRect(largeBox); + +// clear a small rectangle +gc.SetBrushColor(KRgbGray); // change the brush color gc.Clear(clearBox); // clear to brush color

Note: When clearing a rectangle, the brush style is ignored, even if it is TBrushStyle::ENullBrush.

BitGDI Tutorials BitGDI Component
\ No newline at end of file