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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save form's canvas into image file

Status
Not open for further replies.

mironto

Programmer
May 12, 2001
26
SK
I'd like to save a copy of form's canvas into image file, but I don't need the whole canvas, only part of it. I tried this:
Graphics::TBitmap* Bitmap=Form1->GetFormImage();
Bitmap->SaveToFile("a.bmp");
but this grabs the whole canvas. Is there a way to either get only a part of canvas or to clip grabbed bitmap?
thanks for suggestions
 
Greetinx!

Look at Canvas's method of 'CopyRect' to grab of portions canvas's data.
Happy programming!))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top