Главная страница | назад





Article #17087: Clearing the contents of a Canvas

 Question and Answer Database

FAQ2087D.txt   Clearing the contents of a Canvas
Category   :VCL
Platform    :All
Product    :All 32 bit  

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);

7/16/98 4:31:28 PM
 

Last Modified: 01-SEP-99