Mega Code Archive
Categories
/
Delphi
/
VCL
Clearing the contents of a canvas
Question: How can I clear the contents of a canvas? Answer: Simply draw a rectangle in the desired color. Example: Canvas.Brush.Color := ClWhite; Canvas.FillRect(Canvas.ClipRect);