You do not have to draw things in the control TImage. You must assign its property Pictureand leave it alone. In fact, when you draw TImage, you either temporarily do the drawing using its property Canvas, or change the underlying object Pictureby painting its canvas.
To clear a TImage, just select the property Picture.
Image.Picture := nil;
To draw temporary images - something you need to repaint when the window is closed and detected - use TPaintBox.
source
share