clearing an image box

In article <Pine.OSF.3.91.960504122346.9048B-100000@leofric>, "G. Singh" <cex139

Quote
@coventry.ac.uk> writes:
>Hi,
>       How does one clear a Timage which already has a bitmap loaded in it?
>Doing image1.clear does not work.

>       Thanks.
>       (please reply to cex...@coventry.ac.uk too)

This may not be the best solution but it works for me:

with Image1 do begin
    canvas.Brush.color:= clYourBackgroundColor;
    canvas.Rectangular(0,0, width, height); {not sure about the func. name}
end;{with}                                  {Rect? or DrawRect?}

cengiz