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

How to capture snapshot of a TScrollBox ?

Status
Not open for further replies.

Spent

Programmer
Mar 20, 2003
100
BG
I have a TScrollBox which uses 1/4 of the form.Is it possible to capture screenshot not on the whole screen but only on the ScrollBox.

Spent
mail:spentbg@yahoo.com
 
One possibility like:

with Image1 do
begin
SetBounds(Left,Top,ScrollBox1.Width,ScrollBox1.Height);
ScrollBox1.PaintTo(Image1.Canvas,0,0);
end;

Image1.Picture.SaveToFile('c:\temp\scrollbox1.bmp');

Have fun
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top