Board index » delphi » Screen Captures

Screen Captures

I have placed a bitmap on the screen with the following code:

var
picNew  : TPicture

picNew := TPicture.Create;
picNew.LoadFromFile('D:\MyBitMap.Bmp');
Canvas.Draw(0,0,picNew.Graphic);

I would like to be able to restore the this portion of the screen. ie erase
the image, and I do not know how.

I would appreceate any help..Thanks John

 

Re:Screen Captures


On Mon, 6 Jul 1998 12:38:17 -0500, "John Kirkman" <jo...@neto.com>
wrote:

Quote
> and I do not know how.

To "erase" you'll need to save the area under which you intend to draw
to an offscreen bitmap, then restore from this bitmap. Alternatively,
you could use a TImage control, which has a Visible property.

--
Rick Rogers (TeamB) | Fenestra Technologies
http://www.fenestra.com/

Other Threads