Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COPY TIMAGE PICTURE

Status
Not open for further replies.

gmie

Programmer
Sep 6, 2001
29
0
0
MY
Hello guys.....

I load picture into TImage like this....
Image1.Picture.LoadFromFile('D:\people.bmp');

and then I draw(do the sketching) on this picture. All this work ok.

BUT know I want COPY everything(people.bmp and my sketching) in the Image1 to another TImage, Image2......

How to do it?

Plz help me on this...
 
Code:
destRect: TRect;

destRect.Left := 0;
destRect.Top := 0;
destRect.Right := Image1.Width;
destRect.Bottom := Image1.Height;
Image2.Canvas.CopyRect(destRect, Image1.Canvas, destRect);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top